當前位置: 首頁>>代碼示例>>PHP>>正文


PHP view::setCustomParam方法代碼示例

本文整理匯總了PHP中view::setCustomParam方法的典型用法代碼示例。如果您正苦於以下問題:PHP view::setCustomParam方法的具體用法?PHP view::setCustomParam怎麽用?PHP view::setCustomParam使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在view的用法示例。


在下文中一共展示了view::setCustomParam方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     // Does user have permission to access this plugin?
     if (!session::permission('settings_manage', 'users')) {
         view::noAccess();
     }
     view::setCustomParam('section', 'users');
     view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'users', 'items'));
     view::setTrail('cp/users', __('users', 'system_navigation'));
 }
開發者ID:soremi,項目名稱:tutornavi,代碼行數:11,代碼來源:users.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     if (users_helper::isLoggedin()) {
         // Does user have permission to access this plugin?
         if (!session::permission('users_manage', 'users') && uri::getURI() != 'cp/users/login' && uri::getURI() != 'cp/users/login/license' && uri::getURI() != 'cp/users/logout') {
             view::noAccess();
         }
         view::setCustomParam('section', 'users');
         view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'users', 'items'));
     }
     view::setTrail('cp/users', __('users', 'system_navigation'));
 }
開發者ID:soremi,項目名稱:tutornavi,代碼行數:13,代碼來源:users.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     // Does user have permission to access this plugin?
     if (!session::permission('counters_manage', 'utilities')) {
         view::noAccess();
     }
     view::setCustomParam('section', 'system');
     view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'system', 'items', 'system/utilities', 'items'));
     loader::model('utilities/counters', array(), 'recalculate_model');
     view::setTrail('cp/system/config/system', __('system', 'system_navigation'));
     view::setTrail('cp/utilities/counters', __('utilities_counters', 'system_navigation'));
 }
開發者ID:soremi,項目名稱:tutornavi,代碼行數:13,代碼來源:counters.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     // Does user have permission to access this plugin?
     if (!session::permission('languages_manage', 'system')) {
         view::noAccess();
     }
     view::setCustomParam('section', 'system');
     view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'system', 'items', 'system/languages', 'items'));
     loader::model('system/languages');
     view::setTrail('cp/system/config/system', __('system', 'system_navigation'));
     view::setTrail('cp/system/languages/', __('system_languages', 'system_navigation'));
 }
開發者ID:soremi,項目名稱:tutornavi,代碼行數:13,代碼來源:languages.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     // Does user have permission to access this plugin?
     if (!session::permission('newsletters_manage', 'newsletters')) {
         view::noAccess();
     }
     view::setCustomParam('section', 'content');
     view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'content', 'items', 'content/newsletters', 'items'));
     view::setTrail('cp/system/plugins', __('content', 'system_navigation'));
     view::setTrail('cp/content/newsletters', __('newsletters', 'system_navigation'));
     loader::model('newsletters/newsletters', array(), 'newsletters_model');
 }
開發者ID:soremi,項目名稱:tutornavi,代碼行數:13,代碼來源:newsletters.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     // Does user have permission to access this plugin?
     if (!session::permission('plans_manage', 'billing')) {
         view::noAccess();
     }
     view::setCustomParam('section', 'billing');
     view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'billing', 'items'));
     loader::model('billing/plans');
     view::setTrail('cp/billing/transactions', __('billing', 'system_navigation'));
     view::setTrail('cp/billing/plans', __('billing_plans', 'system_navigation'));
 }
開發者ID:soremi,項目名稱:tutornavi,代碼行數:13,代碼來源:plans.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     // Does user have permission to access this plugin?
     if (!session::permission('license_manage', 'system')) {
         view::noAccess();
     }
     view::setCustomParam('section', 'help');
     view::setCustomParam('options', array('help/license' => array('name' => __('help_license', 'system_navigation'), 'uri' => 'help/license', 'keyword' => 'help/license', 'attr' => array('help license'), 'items' => array())));
     loader::model('system/license');
     view::setTrail('cp/help/license', __('help', 'system_navigation'));
     view::setTrail('cp/help/license', __('help_license', 'system_navigation'));
     // Check if demo mode is enabled
     if (input::demo(1, 'cp/system/config/system')) {
         return false;
     }
 }
開發者ID:soremi,項目名稱:tutornavi,代碼行數:17,代碼來源:license.php


注:本文中的view::setCustomParam方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。