original_string: protected function get_parent_record() {
          global $DB;
  
          if (!isset($this->parentrecord)) {
              $this->parentrecord = $DB->get_record('event', ['id' => $this->parentid]);
          }
  
          return $this->parentrecord;
      }
code: protected function get_parent_record() {
          global $DB;
  
          if (!isset($this->parentrecord)) {
              $this->parentrecord = $DB->get_record('event', ['id' => $this->parentid]);
          }
  
          return $this->parentrecord;
      }
code_tokens: protected function get_parent_record ( ) { global $ DB ; if ( ! isset ( $ this -> parentrecord ) ) { $ this -> parentrecord = $ DB -> get_record ( 'event' , [ 'id' => $ this -> parentid ] ) ; } return $ this -> parentrecord ; }
docstring: Return the parent DB record.
  
  @return \stdClass
docstring_tokens: Return the parent DB record .