Exemplo n.º 1
0
 private function _list(&$info, $sortname, $sortorder, $per_page, $action)
 {
     $request = Project::getRequest();
     if (Project::getUser()->isMyArea()) {
         $info['show_control_panel'] = true;
     } else {
         $info['show_control_panel'] = false;
     }
     $model = new AlbumModel();
     $pager = new DbPager($request->getKeyByNumber(0), $per_page);
     $model->setPager($pager);
     $list = $model->loadAll(Project::getUser()->getShowedUser()->id, Project::getUser()->getDbUser()->id, $sortname, $sortorder);
     $pager_view = new SitePagerView();
     $info['album_list_pager'] = $pager_view->show2($model->getPager(), 'Album', $action);
     $this->checkAlbumList($list);
     $info['album_list'] = $list;
     $this->BaseAlbumData($info, 0);
     $this->BaseSiteData();
 }