• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP BASE_MenuItem类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中BASE_MenuItem的典型用法代码示例。如果您正苦于以下问题:PHP BASE_MenuItem类的具体用法?PHP BASE_MenuItem怎么用?PHP BASE_MenuItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了BASE_MenuItem类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: index

 /**
  * Default action
  */
 public function index()
 {
     $language = OW::getLanguage();
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('video', 'admin_menu_general'));
     $item->setUrl(OW::getRouter()->urlForRoute('video_admin_config'));
     $item->setKey('general');
     $item->setIconClass('ow_ic_gear_wheel');
     $menu = new BASE_CMP_ContentMenu(array($item));
     $this->addComponent('menu', $menu);
     $configs = OW::getConfig()->getValues('video');
     $configSaveForm = new ConfigSaveForm();
     $this->addForm($configSaveForm);
     if (OW::getRequest()->isPost() && $configSaveForm->isValid($_POST)) {
         $configSaveForm->process();
         OW::getFeedback()->info($language->text('video', 'settings_updated'));
         $this->redirect(OW::getRouter()->urlForRoute('video_admin_config'));
     }
     if (!OW::getRequest()->isAjax()) {
         $this->setPageHeading(OW::getLanguage()->text('video', 'admin_config'));
         $this->setPageHeadingIconClass('ow_ic_video');
         $menu->getElement('general')->setActive(true);
     }
     $configSaveForm->getElement('playerWidth')->setValue($configs['player_width']);
     $configSaveForm->getElement('playerHeight')->setValue($configs['player_height']);
     $configSaveForm->getElement('perPage')->setValue($configs['videos_per_page']);
     $configSaveForm->getElement('quota')->setValue($configs['user_quota']);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:31,代码来源:admin.php


示例2: initMenu

 private function initMenu($params)
 {
     $language = OW::getLanguage();
     $router = OW::getRouter();
     $this->menu = new BASE_CMP_ContentMenu();
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('base', 'upload'));
     $item->setOrder(0);
     $item->setKey('upload');
     $item->setUrl($router->urlFor('BASE_CTRL_MediaPanel', 'index', $params));
     $this->menu->addElement($item);
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('base', 'tf_img_from_url'));
     $item->setOrder(1);
     $item->setKey('url');
     $item->setUrl($router->urlFor('BASE_CTRL_MediaPanel', 'fromUrl', $params));
     $this->menu->addElement($item);
     $count = BOL_MediaPanelService::getInstance()->countGalleryImages($params['pluginKey'], OW::getUser()->getId());
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('base', 'tf_img_gal') . ($count == 0 ? '' : " ({$count})"));
     $item->setOrder(1);
     $item->setKey('gallery');
     $item->setUrl($router->urlFor('BASE_CTRL_MediaPanel', 'gallery', $params));
     $this->menu->addElement($item);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:25,代码来源:media_panel.php


示例3: index

 /**
  * Default action
  */
 public function index()
 {
     $language = OW::getLanguage();
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('vwls', 'admin_menu_general'));
     $item->setUrl(OW::getRouter()->urlForRoute('vwls_admin_config'));
     $item->setKey('general');
     $item->setIconClass('ow_ic_gear_wheel');
     $menu = new BASE_CMP_ContentMenu(array($item));
     $this->addComponent('menu', $menu);
     $configs = OW::getConfig()->getValues('vwls');
     $configSaveForm = new ConfigSaveForm();
     $this->addForm($configSaveForm);
     if (OW::getRequest()->isPost() && $configSaveForm->isValid($_POST)) {
         $res = $configSaveForm->process();
         OW::getFeedback()->info($language->text('vwls', 'settings_updated'));
         $this->redirect(OW::getRouter()->urlForRoute('vwls_admin_config'));
     }
     if (!OW::getRequest()->isAjax()) {
         $this->setPageHeading(OW::getLanguage()->text('vwls', 'admin_config'));
         $this->setPageHeadingIconClass('ow_ic_vwls');
         $menu->getElement('general')->setActive(true);
     }
     $configSaveForm->getElement('server')->setValue($configs['server']);
     $configSaveForm->getElement('serverAMF')->setValue($configs['serverAMF']);
     $configSaveForm->getElement('serverRTMFP')->setValue($configs['serverRTMFP']);
     $configSaveForm->getElement('enableRTMP')->setValue($configs['enableRTMP']);
     $configSaveForm->getElement('enableP2P')->setValue($configs['enableP2P']);
     $configSaveForm->getElement('supportRTMP')->setValue($configs['supportRTMP']);
     $configSaveForm->getElement('supportP2P')->setValue($configs['supportP2P']);
     $configSaveForm->getElement('alwaysRTMP')->setValue($configs['alwaysRTMP']);
     $configSaveForm->getElement('alwaysP2P')->setValue($configs['alwaysP2P']);
     $configSaveForm->getElement('videoCodec')->setValue($configs['videoCodec']);
     $configSaveForm->getElement('codecProfile')->setValue($configs['codecProfile']);
     $configSaveForm->getElement('codecLevel')->setValue($configs['codecLevel']);
     $configSaveForm->getElement('soundCodec')->setValue($configs['soundCodec']);
     $configSaveForm->getElement('p2pGroup')->setValue($configs['p2pGroup']);
     $configSaveForm->getElement('tokenKey')->setValue($configs['tokenKey']);
     $configSaveForm->getElement('snapshotsTime')->setValue($configs['snapshotsTime']);
     $configSaveForm->getElement('camMaxBandwidth')->setValue($configs['camMaxBandwidth']);
     $configSaveForm->getElement('bufferLive')->setValue($configs['bufferLive']);
     $configSaveForm->getElement('bufferFull')->setValue($configs['bufferFull']);
     $configSaveForm->getElement('bufferLive2')->setValue($configs['bufferLive2']);
     $configSaveForm->getElement('bufferFull2')->setValue($configs['bufferFull2']);
     $configSaveForm->getElement('disableBandwidthDetection')->setValue($configs['disableBandwidthDetection']);
     $configSaveForm->getElement('limitByBandwidth')->setValue($configs['limitByBandwidth']);
     $configSaveForm->getElement('generateSnapshots')->setValue($configs['generateSnapshots']);
     $configSaveForm->getElement('externalInterval')->setValue($configs['externalInterval']);
     $configSaveForm->getElement('externalInterval2')->setValue($configs['externalInterval2']);
     $configSaveForm->getElement('ws_ads')->setValue($configs['ws_ads']);
     $configSaveForm->getElement('adsTimeout')->setValue($configs['adsTimeout']);
     $configSaveForm->getElement('adsInterval')->setValue($configs['adsInterval']);
     $configSaveForm->getElement('statusInterval')->setValue($configs['statusInterval']);
     $configSaveForm->getElement('availability')->setValue($configs['availability']);
     $configSaveForm->getElement('status')->setValue($configs['status']);
     $configSaveForm->getElement('member')->setValue($configs['member']);
     $configSaveForm->getElement('member_list')->setValue($configs['member_list']);
     $configSaveForm->getElement('baseSwf_url')->setValue($configs['baseSwf_url']);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:62,代码来源:admin.php


示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $item = new BASE_MenuItem();
     $item->setLabel(OW::getLanguage()->text('bookmarks', 'general_menu_item_label'));
     $item->setUrl(OW::getRouter()->urlForRoute('bookmarks.admin'));
     $item->setIconClass('ow_ic_gear_wheel');
     $this->addComponent('menu', new BASE_CMP_ContentMenu(array($item)));
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:9,代码来源:admin.php


示例5: index

 /**
  * Default action
  */
 public function index()
 {
     $language = OW::getLanguage();
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('vwvr', 'admin_menu_general'));
     $item->setUrl(OW::getRouter()->urlForRoute('vwvr_admin_config'));
     $item->setKey('general');
     $item->setIconClass('ow_ic_gear_wheel');
     $menu = new BASE_CMP_ContentMenu(array($item));
     $this->addComponent('menu', $menu);
     $configs = OW::getConfig()->getValues('vwvr');
     $configSaveForm = new ConfigSaveForm();
     $this->addForm($configSaveForm);
     if (OW::getRequest()->isPost() && $configSaveForm->isValid($_POST)) {
         $res = $configSaveForm->process();
         OW::getFeedback()->info($language->text('vwvr', 'settings_updated'));
         $this->redirect(OW::getRouter()->urlForRoute('vwvr_admin_config'));
     }
     if (!OW::getRequest()->isAjax()) {
         $this->setPageHeading(OW::getLanguage()->text('vwvr', 'admin_config'));
         $this->setPageHeadingIconClass('ow_ic_vwvr');
         $menu->getElement('general')->setActive(true);
     }
     $configSaveForm->getElement('server')->setValue($configs['server']);
     $configSaveForm->getElement('serverAMF')->setValue($configs['serverAMF']);
     $configSaveForm->getElement('videoCodec')->setValue($configs['videoCodec']);
     $configSaveForm->getElement('codecProfile')->setValue($configs['codecProfile']);
     $configSaveForm->getElement('codecLevel')->setValue($configs['codecLevel']);
     $configSaveForm->getElement('soundCodec')->setValue($configs['soundCodec']);
     $configSaveForm->getElement('soundQuality')->setValue($configs['soundQuality']);
     // $configSaveForm->getElement('microphone_rate')->setValue($configs['micRate']);
     $configSaveForm->getElement('bufferLive')->setValue($configs['bufferLive']);
     $configSaveForm->getElement('camMaxBandwidth')->setValue($configs['camMaxBandwidth']);
     $configSaveForm->getElement('bufferLive')->setValue($configs['bufferLive']);
     $configSaveForm->getElement('bufferFull')->setValue($configs['bufferFull']);
     $configSaveForm->getElement('bufferLivePlayback')->setValue($configs['bufferLivePlayback']);
     $configSaveForm->getElement('bufferFullPlayback')->setValue($configs['bufferFullPlayback']);
     $configSaveForm->getElement('availability')->setValue($configs['availability']);
     $configSaveForm->getElement('status')->setValue($configs['status']);
     $configSaveForm->getElement('member')->setValue($configs['member']);
     $configSaveForm->getElement('member_list')->setValue($configs['member_list']);
     $configSaveForm->getElement('baseSwf_url')->setValue($configs['baseSwf_url']);
     $configSaveForm->getElement('record_path')->setValue($configs['recordPath']);
     $configSaveForm->getElement('record_limit')->setValue($configs['recordLimit']);
     $configSaveForm->getElement('resolution')->setValue($configs['camWidth'] . "x" . $configs['camHeight']);
     $configSaveForm->getElement('camera_fps')->setValue($configs['camFPS']);
     $configSaveForm->getElement('microphone_rate')->setValue($configs['micRate']);
     $configSaveForm->getElement('bandwidth')->setValue($configs['camBandwidth']);
     $configSaveForm->getElement('layout_code')->setValue($configs['layoutCode']);
     $configSaveForm->getElement('show_camera_settings')->setValue($configs['showCamSettings']);
     $configSaveForm->getElement('advanced_camera_settings')->setValue($configs['advancedCamSettings']);
     $configSaveForm->getElement('fill_window')->setValue($configs['fillWindow']);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:56,代码来源:admin.php


示例6: init

 public function init()
 {
     $router = OW_Router::getInstance();
     $pageActions = array('choose_theme', 'add_theme');
     $menuItems = array();
     foreach ($pageActions as $key => $item) {
         $menuItem = new BASE_MenuItem();
         $menuItem->setKey($item)->setLabel(OW::getLanguage()->text('admin', 'themes_menu_item_' . $item))->setOrder($key)->setUrl($router->urlFor(__CLASS__, $item));
         $menuItems[] = $menuItem;
     }
     $this->menu = new BASE_CMP_ContentMenu($menuItems);
     $this->addComponent('contentMenu', $this->menu);
     $this->setPageHeading(OW::getLanguage()->text('admin', 'themes_choose_page_title'));
 }
开发者ID:vazahat,项目名称:dudex,代码行数:14,代码来源:themes.php


示例7: init

 public function init()
 {
     $language = OW::getLanguage();
     $pageActions = array("choose_theme", "add_theme");
     $menuItems = array();
     foreach ($pageActions as $key => $item) {
         $menuItem = new BASE_MenuItem();
         $menuItem->setKey($item)->setLabel($language->text("admin", "themes_menu_item_" . $item))->setOrder($key)->setUrl(OW::getRouter()->urlFor(__CLASS__, $item));
         $menuItems[] = $menuItem;
     }
     $this->menu = new BASE_CMP_ContentMenu($menuItems);
     $this->addComponent("contentMenu", $this->menu);
     $this->setPageHeading($language->text("admin", "themes_choose_page_title"));
 }
开发者ID:ZyXelP,项目名称:oxwall,代码行数:14,代码来源:themes.php


示例8: getMenu

 public function getMenu()
 {
     $language = OW::getLanguage();
     $menu = new BASE_CMP_ContentMenu();
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('all');
     $menuItem->setPrefix('questions');
     $menuItem->setLabel($language->text('questions', 'list_all_tab'));
     $menuItem->setOrder(1);
     $menuItem->setUrl(OW::getRouter()->urlForRoute('questions-all'));
     $menuItem->setIconClass('ow_ic_lens');
     $menu->addElement($menuItem);
     if (OW::getUser()->isAuthenticated()) {
         if (OW::getPluginManager()->isPluginActive('friends')) {
             $menuItem = new BASE_MenuItem();
             $menuItem->setKey('friends');
             $menuItem->setPrefix('questions');
             $menuItem->setLabel($language->text('questions', 'list_friends_tab'));
             $menuItem->setOrder(2);
             $menuItem->setUrl(OW::getRouter()->urlForRoute('questions-friends'));
             $menuItem->setIconClass('ow_ic_user');
             $menu->addElement($menuItem);
         }
         $menuItem = new BASE_MenuItem();
         $menuItem->setKey('my');
         $menuItem->setPrefix('questions');
         $menuItem->setLabel($language->text('questions', 'list_my_tab'));
         $menuItem->setOrder(3);
         $menuItem->setUrl(OW::getRouter()->urlForRoute('questions-my'));
         $menuItem->setIconClass('ow_ic_user');
         $menu->addElement($menuItem);
     }
     return $menu;
 }
开发者ID:jorgemunoz8807,项目名称:havanabook,代码行数:34,代码来源:feed_menu.php


示例9: init

 public function init()
 {
     $router = OW_Router::getInstance();
     $pageActions = array(array('name' => 'settings', 'iconClass' => 'ow_ic_gear_wheel'), array('name' => 'css', 'iconClass' => 'ow_ic_files'), array('name' => 'graphics', 'iconClass' => 'ow_ic_picture'));
     $menuItems = array();
     foreach ($pageActions as $key => $item) {
         $menuItem = new BASE_MenuItem();
         $menuItem->setKey($item['name'])->setLabel(OW::getLanguage()->text('admin', 'sidebar_menu_item_' . $item['name']))->setOrder($key)->setUrl($router->urlForRoute('admin_theme_' . $item['name']));
         $menuItem->setIconClass($item['iconClass']);
         $menuItems[] = $menuItem;
     }
     $this->menu = new BASE_CMP_ContentMenu($menuItems);
     $this->addComponent('contentMenu', $this->menu);
     OW::getNavigation()->activateMenuItem(OW_Navigation::ADMIN_APPEARANCE, 'admin', 'sidebar_menu_item_theme_edit');
     $this->setPageHeading(OW::getLanguage()->text('admin', 'themes_settings_page_title'));
 }
开发者ID:ZyXelP,项目名称:oxwall,代码行数:16,代码来源:theme.php


示例10: addContentMenu

 private function addContentMenu()
 {
     $language = OW::getLanguage();
     $router = OW_Router::getInstance();
     $menuItems = array();
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('general_settings')->setLabel($language->text('usearch', 'general_settings'))->setUrl($router->urlForRoute('usearch.admin_general_setting'))->setOrder('1');
     $menuItem->setIconClass('ow_ic_gear_wheel');
     $menuItems[] = $menuItem;
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('quick_search_settings')->setLabel($language->text('usearch', 'quick_search_settings'))->setUrl($router->urlForRoute('usearch.admin_quick_search_setting'))->setOrder('4');
     $menuItem->setIconClass('ow_ic_lens');
     $menuItems[] = $menuItem;
     $this->contentMenu = new BASE_CMP_ContentMenu($menuItems);
     $this->addComponent('contentMenu', $this->contentMenu);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:16,代码来源:admin.php


示例11: getMenu

 public function getMenu()
 {
     $items = array();
     $item = new BASE_MenuItem();
     $item->setLabel(OW::getLanguage()->text('admin', 'edit_language'));
     $item->setIconClass('ow_ic_edit');
     $item->setKey('edit_lang');
     if ($this->isDevMode()) {
         $item->setUrl(OW::getRouter()->urlForRoute('admin_developer_tools_language'));
     } else {
         $item->setUrl(OW::getRouter()->urlForRoute('admin_languages_index'));
     }
     $item->setOrder(1);
     $items[] = $item;
     $item = new BASE_MenuItem();
     $item->setLabel(OW::getLanguage()->text('admin', 'available_languages'));
     $item->setIconClass('ow_ic_files');
     $item->setKey('avail_lang');
     if ($this->isDevMode()) {
         $item->setUrl(OW::getRouter()->urlForRoute('admin_developer_tools_language_mod'));
     } else {
         $item->setUrl(OW::getRouter()->urlFor('ADMIN_CTRL_Languages', 'mod'));
     }
     $item->setOrder(2);
     $items[] = $item;
     return new BASE_CMP_ContentMenu($items);
 }
开发者ID:hardikamutech,项目名称:hammu,代码行数:27,代码来源:languages.php


示例12: index

 public function index()
 {
     $language = OW::getLanguage();
     $this->setPageHeading($language->text('ynsocialpublisher', 'admin_config'));
     $this->setPageHeadingIconClass('ow_ic_picture');
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('ynsocialpublisher', 'admin_menu_general'));
     $item->setUrl(OW::getRouter()->urlForRoute('ynsocialpublisher.admin'));
     $item->setKey('general');
     $item->setIconClass('ow_ic_gear_wheel');
     $item->setOrder(0);
     $item->setActive(true);
     $menu = new BASE_CMP_ContentMenu(array($item));
     $this->addComponent('menu', $menu);
     $service = YNSOCIALPUBLISHER_BOL_Service::getInstance();
     $plugins = $service->getEnabledPlugins();
     $this->assign('plugins', $plugins);
     $form_url = OW::getRouter()->urlForRoute('ynsocialpublisher.admin');
     $this->assign('form_url', $form_url);
     if (OW::getRequest()->isPost()) {
         // get plugins data from post
         $params = $_POST['params'];
         foreach ($params as $key => $settings) {
             if (!isset($settings['providers'])) {
                 $settings['providers'] = array();
             }
             OW::getConfig()->saveConfig('ynsocialpublisher', $key, json_encode($settings));
         }
         OW::getFeedback()->info($language->text('ynsocialpublisher', 'settings_updated'));
         $this->redirect($form_url);
     }
 }
开发者ID:vazahat,项目名称:dudex,代码行数:32,代码来源:admin.php


示例13: getMenu

 private function getMenu()
 {
     $lang = OW::getLanguage();
     $router = OW::getRouter();
     $items = array();
     $item = new BASE_MenuItem();
     $item->setLabel($lang->text('usearch', 'user_list'));
     $item->setOrder(0);
     $item->setKey('photo_gallery');
     $item->setIconClass('ow_ic_picture');
     $item->setUrl($router->urlForRoute('users-search-result'));
     array_push($items, $item);
     //        $item = new BASE_MenuItem();
     //        $item->setLabel($lang->text('usearch', 'profile_details'));
     //        $item->setOrder(1);
     //        $item->setKey('profile_details');
     //        $item->setIconClass('ow_ic_comment');
     //        $item->setUrl($router->urlForRoute('usearch.details'));
     //        array_push($items, $item);
     if (OW::getPluginManager()->isPluginActive('googlelocation')) {
         $item = new BASE_MenuItem();
         $item->setLabel($lang->text('usearch', 'map'));
         $item->setOrder(2);
         $item->setKey('map');
         $item->setIconClass('ow_ic_places');
         $item->setUrl($router->urlForRoute('usearch.map'));
         array_push($items, $item);
     }
     return new BASE_CMP_ContentMenu($items);
 }
开发者ID:hardikamutech,项目名称:hammu,代码行数:30,代码来源:search.php


示例14: __construct

 public function __construct()
 {
     parent::__construct();
     if (OW::getRequest()->isAjax()) {
         return;
     }
     $language = OW::getLanguage();
     $menu = new BASE_CMP_ContentMenu();
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('admin-index');
     $menuItem->setLabel($language->text('sponsors', 'admin_tab_general_title'));
     $menuItem->setUrl(OW::getRouter()->urlForRoute('sponsors_admin'));
     $menuItem->setIconClass('ow_ic_gear_wheel');
     $menuItem->setOrder(1);
     $menu->addElement($menuItem);
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('admin-list');
     $menuItem->setLabel($language->text('sponsors', 'admin_sponsors_list'));
     $menuItem->setUrl(OW::getRouter()->urlForRoute('sponsors_admin_list'));
     $menuItem->setIconClass('ow_ic_gear_wheel');
     $menuItem->setOrder(2);
     $menu->addElement($menuItem);
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('admin-add');
     $menuItem->setLabel($language->text('sponsors', 'admin_add_sponsor'));
     $menuItem->setUrl(OW::getRouter()->urlForRoute('sponsors_admin_add'));
     $menuItem->setIconClass('ow_ic_gear_wheel');
     $menuItem->setOrder(3);
     $menu->addElement($menuItem);
     $this->addComponent('menu', $menu);
     $this->menu = $menu;
 }
开发者ID:vazahat,项目名称:dudex,代码行数:32,代码来源:admin.php


示例15: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $language = OW::getLanguage();
     $menu = new BASE_CMP_ContentMenu();
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('index');
     $menuItem->setLabel($language->text('ads', 'advertisement_menu_banner_list'));
     $menuItem->setUrl(OW::getRouter()->urlForRoute('ads.admin_index'));
     $menuItem->setIconClass('ow_ic_files');
     $menuItem->setOrder(1);
     $menu->addElement($menuItem);
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('manage');
     $menuItem->setLabel($language->text('ads', 'advertisement_menu_manage_banners'));
     $menuItem->setUrl(OW::getRouter()->urlForRoute('ads.admin_manage'));
     $menuItem->setIconClass('ow_ic_gear_wheel');
     $menuItem->setOrder(2);
     $menu->addElement($menuItem);
     $this->addComponent('menu', $menu);
     $this->menu = $menu;
     $this->adsService = ADS_BOL_Service::getInstance();
     $this->setPageTitle($language->text('ads', 'page_title_ads'));
     $this->setPageHeading($language->text('ads', 'page_heading_ads'));
     $this->setPageHeadingIconClass('ow_ic_star');
     OW::getNavigation()->activateMenuItem('admin_plugins', 'admin', 'sidebar_menu_plugins_installed');
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:30,代码来源:admin.php


示例16: getMenu

 private function getMenu($active = 'actions')
 {
     $language = OW::getLanguage();
     $item = new BASE_MenuItem();
     $item->setLabel($language->text('usercredits', 'tab_actions'));
     $item->setUrl(OW::getRouter()->urlForRoute('usercredits.admin'));
     $item->setKey('actions');
     $item->setOrder(1);
     $item->setActive($active == 'actions');
     $item->setIconClass('ow_ic_info');
     $item2 = new BASE_MenuItem();
     $item2->setLabel($language->text('usercredits', 'packs'));
     $item2->setUrl(OW::getRouter()->urlForRoute('usercredits.admin_packs'));
     $item2->setKey('packs');
     $item2->setOrder(2);
     $item2->setActive($active == 'packs');
     $item2->setIconClass('ow_ic_folder');
     $item3 = new BASE_MenuItem();
     $item3->setLabel($language->text('usercredits', 'settings'));
     $item3->setUrl(OW::getRouter()->urlForRoute('usercredits.admin_settings'));
     $item3->setKey('settings');
     $item3->setOrder(3);
     $item3->setActive($active == 'settings');
     $item3->setIconClass('ow_ic_gear_wheel');
     return new BASE_CMP_ContentMenu(array($item, $item2, $item3));
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:26,代码来源:admin.php


示例17: __construct

 public function __construct()
 {
     parent::__construct();
     if (OW::getRequest()->isAjax()) {
         return;
     }
     $language = OW::getLanguage();
     $menu = new BASE_CMP_ContentMenu();
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('admin-index');
     $menuItem->setLabel($language->text('advancedphoto', 'admin_tab_general_title'));
     $menuItem->setUrl(OW::getRouter()->urlForRoute('advancedphoto_admin_config'));
     $menuItem->setIconClass('ow_ic_files');
     $menuItem->setOrder(1);
     $menu->addElement($menuItem);
     $menuItem = new BASE_MenuItem();
     $menuItem->setKey('categories');
     $menuItem->setLabel($language->text('advancedphoto', 'admin_category_tab_title'));
     $menuItem->setUrl(OW::getRouter()->urlForRoute('advancedphoto_categories'));
     $menuItem->setIconClass('ow_ic_gear_wheel');
     $menuItem->setOrder(2);
     $menu->addElement($menuItem);
     $this->addComponent('menu', $menu);
     $this->menu = $menu;
     $this->setPageHeading(OW::getLanguage()->text('advancedphoto', 'admin_settings_title'));
     $this->setPageTitle(OW::getLanguage()->text('advancedphoto', 'admin_settings_title'));
     $this->setPageHeadingIconClass('ow_ic_gear_wheel');
 }
开发者ID:vazahat,项目名称:dudex,代码行数:28,代码来源:admin.php


示例18: getMenu

 /**
  * Returns menu component
  *
  * @return BASE_CMP_ContentMenu
  */
 private function getMenu()
 {
     $language = OW::getLanguage();
     $validLists = array('photo', 'album', 'tagged');
     $classes = array('', '', 'ow_ic_tag');
     $urls = array(OW::getRouter()->urlForRoute('photo_list_index'), OW::getRouter()->urlForRoute('photo_list_albums'), '');
     $titles = array($language->text('advancedphoto', 'photos'), $language->text('advancedphoto', 'albums'), $language->text('photo', 'menu_tagged'));
     if ($user = OW::getUser()->getUserObject()) {
         $validLists[3] = "myalbum";
         $classes[3] = "";
         $urls[3] = OW::getRouter()->urlForRoute('photo_user_albums', array('user' => $user->username));
         $titles[3] = $language->text('advancedphoto', 'my_albums');
     }
     $checkPrivacy = PHOTO_BOL_PhotoService::getInstance()->countPhotos('featured');
     if (!PHOTO_BOL_PhotoService::getInstance()->countPhotos('featured', $checkPrivacy)) {
         array_shift($validLists);
         array_shift($classes);
     }
     $menuItems = array();
     $order = 0;
     foreach ($validLists as $type) {
         $item = new BASE_MenuItem();
         $item->setLabel($titles[$order]);
         $item->setUrl($urls[$order] != '' ? $urls[$order] : OW::getRouter()->urlForRoute('view_photo_list', array('listType' => $type)));
         $item->setKey($type);
         $item->setIconClass($classes[$order]);
         $item->setOrder($order);
         array_push($menuItems, $item);
         $order++;
     }
     $menu = new BASE_CMP_ContentMenu($menuItems);
     return $menu;
 }
开发者ID:vazahat,项目名称:dudex,代码行数:38,代码来源:photo.php


示例19: getMenu

 private function getMenu($active)
 {
     $language = OW::getLanguage();
     $list = BOL_FlagService::getInstance()->findTypeList();
     $mil = array();
     $i = 0;
     foreach ($list as $type) {
         $mi = new BASE_MenuItem();
         $c = BOL_FlagService::getInstance()->countFlaggedItems($type['type']);
         $a = explode('+', $type['langKey']);
         $mi->setLabel($language->text($a[0], $a[1]) . ($c > 0 ? " ({$c})" : ''))->setKey($type['type'])->setOrder($i++)->setUrl(OW::getRouter()->urlFor('BASE_CTRL_Flags', 'index', array('type' => $type['type'])));
         if ($active == $type) {
             $mi->isActive(true);
         }
         $mil[] = $mi;
     }
     return new BASE_CMP_ContentMenu($mil);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:18,代码来源:flags.php


示例20: __construct

 public function __construct()
 {
     parent::__construct();
     $this->questionService = BOL_QuestionService::getInstance();
     $this->setPageHeading(OW::getLanguage()->text('base', 'complete_your_profile_page_heading'));
     $this->setPageHeadingIconClass('ow_ic_user');
     $item = new BASE_MenuItem();
     $item->setLabel(OW::getLanguage()->text('base', 'complete_profile'));
     $item->setUrl(OW::getRouter()->urlForRoute("base.complete_required_questions"));
     $item->setKey('complete_profile');
     $item->setOrder(1);
     $masterpage = OW::getDocument()->getMasterPage();
     $masterpage = OW::getDocument()->getMasterPage();
     if (!empty($masterpage) && method_exists($masterpage, 'getMenu')) {
         $menu = $masterpage->getMenu('main');
         if (!empty($menu)) {
             $menu->setMenuItems(array($item));
         }
     }
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:20,代码来源:complete_profile.php



注:本文中的BASE_MenuItem类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP BBCode类代码示例发布时间:2022-05-23
下一篇:
PHP BASE_CLASS_Widget类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap