当前位置: 首页>>代码示例>>PHP>>正文


PHP SettingsManager::setContext方法代码示例

本文整理汇总了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');
 }
开发者ID:janusnic,项目名称:OctoberCMS,代码行数:7,代码来源:Locales.php

示例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');
 }
开发者ID:janusnic,项目名称:OctoberCMS,代码行数:7,代码来源:Updates.php

示例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');
 }
开发者ID:arall,项目名称:recetarium,代码行数:10,代码来源:Backups.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('Responsiv.Pay', 'types');
     GatewayManager::createPartials();
 }
开发者ID:dogiedog,项目名称:pay-plugin,代码行数:7,代码来源:PaymentMethods.php

示例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');
 }
开发者ID:rendler-denis,项目名称:templatetokens,代码行数:10,代码来源:Config.php

示例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');
 }
开发者ID:Smony,项目名称:njphoto,代码行数:7,代码来源:Settings.php

示例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');
 }
开发者ID:mechiko,项目名称:staff-october,代码行数:8,代码来源:Definitions.php

示例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');
 }
开发者ID:nnmer,项目名称:october,代码行数:11,代码来源:Themes.php

示例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');
 }
开发者ID:aaronleslie,项目名称:aaronunix,代码行数:12,代码来源:Preferences.php

示例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;
     }
 }
开发者ID:Danielberry90,项目名称:Txt,代码行数:9,代码来源:Robots.php

示例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'));
 }
开发者ID:anqqa,项目名称:oc-calendar-plugin,代码行数:9,代码来源:Import.php

示例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;
     }
 }
开发者ID:betes-curieuses-design,项目名称:ElieJosiePhotographie,代码行数:11,代码来源:Updates.php

示例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();
     }
 }
开发者ID:pietercolpaert,项目名称:swagsite,代码行数:17,代码来源:Themes.php

示例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);
     }
 }
开发者ID:coderkid,项目名称:october,代码行数:19,代码来源:Settings.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     \BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('eBussola.Feedback', 'channels');
 }
开发者ID:Smony,项目名称:njphoto,代码行数:6,代码来源:Channels.php


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