當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。