本文整理汇总了PHP中System\Classes\SettingsManager::setContext方法的典型用法代码示例。如果您正苦于以下问题:PHP SettingsManager::setContext方法的具体用法?PHP SettingsManager::setContext怎么用?PHP SettingsManager::setContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System\Classes\SettingsManager
的用法示例。
在下文中一共展示了SettingsManager::setContext方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('RainLab.Translate', 'locales');
$this->addJs('/plugins/rainlab/translate/assets/js/locales.js');
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->addCss('/modules/system/assets/css/updates.css', 'core');
BackendMenu::setContext('October.System', 'system', 'updates');
SettingsManager::setContext('October.System', 'updates');
}
示例3: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$this->addJs('/plugins/renatio/backupmanager/assets/js/backup.js');
BackendMenu::setContext('Renatio.BackupManager', 'backupmanager', 'backups');
SettingsManager::setContext('Renatio.BackupManager', 'settings');
}
示例4: __construct
public function __construct()
{
parent::__construct();
BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('Responsiv.Pay', 'types');
GatewayManager::createPartials();
}
示例5: __construct
/**
* Class constructor
*/
public function __construct()
{
parent::__construct();
BackendMenu::setContext('October.System', 'system', 'config');
SettingsManager::setContext('KoderHut.TemplateTokens', 'token_config');
$this->addJs('/plugins/koderhut/templatetokens/assets/js/templatetokens.js');
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->pageTitle = 'xeor.yandexservicesauth::lang.settings.menu_label';
BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('Xeor.YandexServicesAuth', 'settings');
}
示例7: __construct
public function __construct()
{
parent::__construct();
BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('RainLab.Sitemap', 'definitions');
$this->addJs('/modules/backend/assets/js/october.treeview.js', 'core');
$this->addJs('/plugins/rainlab/sitemap/assets/js/sitemap-definitions.js');
}
示例8: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct();
$this->addCss('/modules/cms/assets/css/october.theme-selector.css', 'core');
$this->pageTitle = 'cms::lang.theme.settings_menu';
BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('October.Cms', 'theme');
}
示例9: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct();
$this->addCss('/modules/backend/formwidgets/codeeditor/assets/css/codeeditor.css', 'core');
$this->addJs('/modules/backend/formwidgets/codeeditor/assets/js/build-min.js', 'core');
$this->addJs('/modules/backend/assets/js/preferences/preferences.js', 'core');
BackendMenu::setContext('October.System', 'system', 'mysettings');
SettingsManager::setContext('October.Backend', 'preferences');
}
示例10: __construct
public function __construct()
{
parent::__construct();
SettingsManager::setContext('Mohsin.Txt', 'robots');
BackendMenu::setContext('October.System', 'system', 'settings');
if (!Setting::get('use_robots')) {
$this->enabled = false;
}
}
示例11: __construct
public function __construct()
{
parent::__construct();
BackendMenu::setContext('Klubitus.Calendar', 'calendar', 'import');
SettingsManager::setContext('Klubitus.Calendar', 'settings');
$this->vars['importEnabled'] = $this->importEnabled = (bool) CalendarSettings::get('facebook_import_enabled');
$this->vars['importUrl'] = $this->importUrl = CalendarSettings::get('facebook_import_url');
$this->vars['importUser'] = $this->importUser = UserModel::find(CalendarSettings::get('facebook_import_user_id'));
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->addJs('/modules/system/assets/js/updates/updates.js', 'core');
$this->addCss('/modules/system/assets/css/updates/updates.css', 'core');
BackendMenu::setContext('October.System', 'system', 'updates');
SettingsManager::setContext('October.System', 'updates');
if ($this->getAjaxHandler() == 'onExecuteStep') {
$this->useSecurityToken = false;
}
}
示例13: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct();
$this->addCss('/modules/cms/assets/css/october.theme-selector.css', 'core');
$this->pageTitle = 'cms::lang.theme.settings_menu';
BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('October.Cms', 'theme');
/*
* Enable AJAX for Form widgets
*/
if (post('mode') == 'import') {
$this->makeImportFormWidget($this->findThemeObject())->bindToController();
}
}
示例14: update
public function update($author, $plugin, $code = null)
{
SettingsManager::setContext($author . '.' . $plugin, $code);
try {
$item = $this->findSettingItem($author, $plugin, $code);
$this->pageTitle = $item->label;
if ($item->context == 'mysettings') {
$this->vars['parentLink'] = Backend::url('system/settings/mysettings');
$this->vars['parentLabel'] = Lang::get('backend::lang.mysettings.menu_label');
} else {
$this->vars['parentLink'] = Backend::url('system/settings');
$this->vars['parentLabel'] = Lang::get('system::lang.settings.menu_label');
}
$model = $this->createModel($item);
$this->initWidgets($model);
} catch (Exception $ex) {
$this->handleError($ex);
}
}
示例15: __construct
public function __construct()
{
parent::__construct();
\BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('eBussola.Feedback', 'channels');
}