本文整理汇总了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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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');
}
示例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'));
}
示例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;
}
}