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; }
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; }