original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Fetches the array of blog entries.
  
  @return array
docstring_tokens: Fetches the array of blog entries .