original_string: protected function get_entry($entryid) {
          global $DB;
  
          if (empty($this->entriesdata[$entryid])) {
              $this->entriesdata[$entryid] = $DB->get_record('data_records', array( 'id' => $entryid ), '*', MUST_EXIST);
          }
  
          return $this->entriesdata[$entryid];
      }
code: protected function get_entry($entryid) {
          global $DB;
  
          if (empty($this->entriesdata[$entryid])) {
              $this->entriesdata[$entryid] = $DB->get_record('data_records', array( 'id' => $entryid ), '*', MUST_EXIST);
          }
  
          return $this->entriesdata[$entryid];
      }
code_tokens: protected function get_entry ( $ entryid ) { global $ DB ; if ( empty ( $ this -> entriesdata [ $ entryid ] ) ) { $ this -> entriesdata [ $ entryid ] = $ DB -> get_record ( 'data_records' , array ( 'id' => $ entryid ) , '*' , MUST_EXIST ) ; } return $ this -> entriesdata [ $ entryid ] ; }
docstring: Get database entry data
  
  @throws \dml_exception
  @param int $entryid
  @return stdClass
docstring_tokens: Get database entry data