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


PHP Controller::__construct方法代码示例

本文整理汇总了PHP中Backend\Classes\Controller::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Controller::__construct方法的具体用法?PHP Controller::__construct怎么用?PHP Controller::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Backend\Classes\Controller的用法示例。


在下文中一共展示了Controller::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('Feegleweb.OctoshopLite', 'shop', 'products');
     $this->addCss($this->assetsPath . '/css/modal-form.css');
     $this->addJs($this->assetsPath . '/js/product-form.js');
 }
开发者ID:Hasnayeen,项目名称:shohoranno,代码行数:7,代码来源:Products.php

示例2: __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

示例3: __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

示例4: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.Cms', 'cms', true);
     try {
         if (!($theme = Theme::getEditTheme())) {
             throw new ApplicationException(Lang::get('cms::lang.theme.edit.not_found'));
         }
         $this->theme = $theme;
         new TemplateList($this, 'pageList', function () use($theme) {
             return Page::listInTheme($theme, true);
         });
         new TemplateList($this, 'partialList', function () use($theme) {
             return Partial::listInTheme($theme, true);
         });
         new TemplateList($this, 'layoutList', function () use($theme) {
             return Layout::listInTheme($theme, true);
         });
         new TemplateList($this, 'contentList', function () use($theme) {
             return Content::listInTheme($theme, true);
         });
         new ComponentList($this, 'componentList');
         new AssetList($this, 'assetList');
     } catch (Exception $ex) {
         $this->handleError($ex);
     }
 }
开发者ID:rafasashi,项目名称:sd-laravel,代码行数:30,代码来源:Index.php

示例5: __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

示例6: __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

示例7: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('Adrenth.Redirect', 'redirect', $this->action);
     $this->requiredPermissions = ['adrenth.redirect.access_redirects'];
     $this->vars['match'] = null;
 }
开发者ID:adrenth,项目名称:redirect,代码行数:10,代码来源:Redirects.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('Responsiv.Currency', 'currencies');
     $this->addJs('/plugins/responsiv/currency/assets/js/currency-list.js');
 }
开发者ID:responsiv,项目名称:currency-plugin,代码行数:7,代码来源:Currencies.php

示例9: __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

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('Bm.Field', 'template', 'template');
     $this->addJs('/modules/backend/assets/js/october.treeview.js', 'core');
     $this->bodyClass = '';
 }
开发者ID:zrosiak,项目名称:fields,代码行数:7,代码来源:Template.php

示例11: __construct

 /**
  * Ensure that by default our edit menu sidebar is active
  */
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('BenFreke.MenuManager', 'menumanager', 'edit');
     // Add my assets
     $this->addJs('/plugins/benfreke/menumanager/assets/js/benfreke.menumanager.js');
 }
开发者ID:eugen-stoian,项目名称:oc-menumanager-plugin,代码行数:10,代码来源:Menus.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addJs('/plugins/stone/testimonials/assets/js/testimonial.js');
     $this->addCss('/plugins/stone/testimonials/assets/css/testimonial.css');
     BackendMenu::setContext('Stone.Testimonials', 'testimonials', 'testimonial');
 }
开发者ID:scottstone72,项目名称:testimonials,代码行数:7,代码来源:Testimonial.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('RAFIE.ContactForm', 'contactform', 'forms');
     $this->addCss('/plugins/rafie/contactform/assets/css/backend_formcontrol.css');
     $this->addJs('/plugins/rafie/contactform/assets/js/backend_formcontrol.js');
 }
开发者ID:tysonrude,项目名称:bloom7,代码行数:7,代码来源:Forms.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     //        BackendMenu::setContext('CheerfulLab.Frontendspelling', 'frontendspelling', 'spellingrequests');
     BackendMenu::setContext('CheerfulLab.FrontendSpelling', 'spelling', 'requests');
     //        BackendMenu::setContext('RainLab.Blog', 'blog', 'posts');
 }
开发者ID:janusnic,项目名称:frontSpelling-plugin,代码行数:7,代码来源:SpellingRequests.php

示例15: __construct

 /**
  * Discounts Constructor
  */
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('Bedard.Shop', 'shop', 'discounts');
     $this->addCss('/plugins/bedard/shop/assets/css/backend.css');
     $this->addCss('/plugins/bedard/shop/assets/css/tooltip.css');
 }
开发者ID:janusnic,项目名称:shop,代码行数:10,代码来源:Discounts.php


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