Exemple #1
0
 public static function getAll()
 {
     self::$_items = array();
     $models = self::model()->findAll();
     foreach ($models as $model) {
         self::$_items[$model->id] = $model->name;
     }
     return self::$_items;
 }