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];
    }
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];
    }
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 ] ; }
Get database entry data

@throws \dml_exception
@param int $entryid
@return stdClass
Get database entry data