public function get_entries($start=0, $limit=10) {
        global $DB;

        if ($this->entries === null) {
            if ($sqlarray = $this->get_entry_fetch_sql(false, 'created DESC')) {
                $this->entries = $DB->get_records_sql($sqlarray['sql'], $sqlarray['params'], $start, $limit);
                if (!$start && count($this->entries) < $limit) {
                    $this->totalentries = count($this->entries);
                }
            } else {
                return false;
            }
        }

        return $this->entries;
    }
public function get_entries($start=0, $limit=10) {
        global $DB;

        if ($this->entries === null) {
            if ($sqlarray = $this->get_entry_fetch_sql(false, 'created DESC')) {
                $this->entries = $DB->get_records_sql($sqlarray['sql'], $sqlarray['params'], $start, $limit);
                if (!$start && count($this->entries) < $limit) {
                    $this->totalentries = count($this->entries);
                }
            } else {
                return false;
            }
        }

        return $this->entries;
    }
public function get_entries ( $ start = 0 , $ limit = 10 ) { global $ DB ; if ( $ this -> entries === null ) { if ( $ sqlarray = $ this -> get_entry_fetch_sql ( false , 'created DESC' ) ) { $ this -> entries = $ DB -> get_records_sql ( $ sqlarray [ 'sql' ] , $ sqlarray [ 'params' ] , $ start , $ limit ) ; if ( ! $ start && count ( $ this -> entries ) < $ limit ) { $ this -> totalentries = count ( $ this -> entries ) ; } } else { return false ; } } return $ this -> entries ; }
Fetches the array of blog entries.

@return array
Fetches the array of blog entries .