public function __construct() { parent::__construct(); if (OW::getRequest()->isAjax()) { return; } }
public function __construct() { parent::__construct(); OW::getNavigation()->activateMenuItem(OW_Navigation::MAIN, 'base', 'users_main_menu_item'); $this->setPageHeading(OW::getLanguage()->text('base', 'users_browse_page_heading')); $this->setPageTitle(OW::getLanguage()->text('base', 'users_browse_page_heading')); $this->setPageHeadingIconClass('ow_ic_user'); $this->usersPerPage = (int) OW::getConfig()->getValue('base', 'users_count_on_page'); }
public function __construct() { parent::__construct(); $this->ajaxResponder = OW::getRouter()->urlFor('IVIDEO_CTRL_Action', 'ajaxResponder'); $language = OW::getLanguage(); $menu = new BASE_MCMP_ContentMenu(); $menuItem = new BASE_MenuItem(); $menuItem->setKey('latest'); $menuItem->setLabel($language->text('ivideo', 'view_latest_videos')); $menuItem->setUrl(OW::getRouter()->urlForRoute('ivideo_view_list', array('type' => 'latest'))); $menuItem->setIconClass('ow_ic_gear_wheel'); $menuItem->setOrder(1); $menu->addElement($menuItem); $menuItem = new BASE_MenuItem(); $menuItem->setKey('featured'); $menuItem->setLabel($language->text('ivideo', 'view_featured_videos')); $menuItem->setUrl(OW::getRouter()->urlForRoute('ivideo_view_list', array('type' => 'featured'))); $menuItem->setIconClass('ow_ic_gear_wheel'); $menuItem->setOrder(2); $menu->addElement($menuItem); $menuItem = new BASE_MenuItem(); $menuItem->setKey('popular'); $menuItem->setLabel($language->text('ivideo', 'view_toprated_videos')); $menuItem->setUrl(OW::getRouter()->urlForRoute('ivideo_view_list', array('type' => 'toprated'))); $menuItem->setIconClass('ow_ic_gear_wheel'); $menuItem->setOrder(3); $menu->addElement($menuItem); $menuItem = new BASE_MenuItem(); $menuItem->setKey('top-rated'); $menuItem->setLabel($language->text('ivideo', 'view_category_videos')); $menuItem->setUrl(OW::getRouter()->urlForRoute('ivideo_list_category')); $menuItem->setIconClass('ow_ic_gear_wheel'); $menuItem->setOrder(4); $menu->addElement($menuItem); $menuItem = new BASE_MenuItem(); $menuItem->setKey('genres'); $menuItem->setLabel($language->text('ivideo', 'user_tag_list')); $menuItem->setUrl(OW::getRouter()->urlForRoute('ivideo_tag_list')); $menuItem->setIconClass('ow_ic_gear_wheel'); $menuItem->setOrder(5); $menu->addElement($menuItem); $this->addComponent('menu', $menu); $this->menu = $menu; $this->assign('videosPerRow', OW::getConfig()->getValue('ivideo', 'videosPerRow')); $this->assign('addItemAuthorized', OW::getUser()->isAuthenticated() && OW::getUser()->isAuthorized('ivideo', 'add')); }
/** * Class constructor */ public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->userService = BOL_UserService::getInstance(); }
public function __construct() { parent::__construct(); $this->photoService = PHOTO_BOL_PhotoService::getInstance(); $this->photoAlbumService = PHOTO_BOL_PhotoAlbumService::getInstance(); }