Beispiel #1
0
 protected function BaseAlbumData(&$info, $album_id, $album_list = false)
 {
     $request_user_id = (int) Project::getUser()->getShowedUser()->id;
     $user_id = (int) Project::getUser()->getDbUser()->id;
     if (Project::getUser()->isMyArea()) {
         $v = new AlbumView();
         $v->ControlPanel();
         $info['control_panel'] = $v->parse();
     } else {
         $info['control_panel'] = null;
     }
     if ($request_user_id > 0) {
         //	$info['tab_list'] = TabController::getOwnTabs(false, true);
         $info['tab_list'] = TabController::getOwnTabs(false, false, true);
     }
     $tmp = array();
     $album_model = new AlbumModel();
     $tmp['album_menu_list'] = $album_model->loadByUser($request_user_id, $user_id);
     $tmp['album_id'] = $album_id;
     if (Project::getUser()->isMyArea()) {
         $tmp['album_owner'] = true;
     }
     $v = new AlbumView();
     $v->AlbumMenu($tmp);
     $info['album_menu'] = $v->parse();
     if ($album_list !== false) {
         $info[$album_list] = $tmp['album_menu_list'];
     }
 }