Ejemplo n.º 1
0
 public static function getAll()
 {
     $rows = DaoCore::get('*', self::$table);
     $categories = array();
     foreach ($rows as $row) {
         $categorie = new CategorieModel();
         $categorie->hydrate($row);
         array_push($categories, $categorie);
     }
     return $categories;
 }
Ejemplo n.º 2
0
 public static function getAll()
 {
     $rows = DaoCore::get('*', self::$table);
     $topics = array();
     foreach ($rows as $row) {
         $topic = new TopicModel();
         $topic->hydrate($row);
         array_push($topics, $topic);
     }
     return $topics;
 }