Esempio n. 1
0
 /**
  * Method to load all of the BO items to the feed from the database, from the newest to the
  * $limit provided.
  *
  * @param int    $limit  The amount of items to render in the feed.
  * @param string $sortBy The name of the field to sort the feed by.
  *
  * @since 1.0
  */
 public function loadBOs($limit, $sortBy)
 {
     $BOs = $this->BO->loadAll(0, $limit, $sortBy, 'DESC');
     ActiveRecord::disconnect();
     foreach ($BOs as $BO) {
         $this->addBO($BO);
     }
 }