示例#1
0
 public function getAlbumList()
 {
     $list = [];
     $cats = Categories::findByHandler('gallery');
     foreach ($cats as $c) {
         $res = $c->resources;
         if (count($res)) {
             foreach ($res as $r) {
                 $list[$r->id] = $c->title . ' -> ' . $r->title;
             }
         }
     }
     return $list;
 }