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


PHP modExtraManagerController类代码示例

本文整理汇总了PHP中modExtraManagerController的典型用法代码示例。如果您正苦于以下问题:PHP modExtraManagerController类的具体用法?PHP modExtraManagerController怎么用?PHP modExtraManagerController使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: initialize

    /**
     * @return void
     */
    public function initialize()
    {
        if (!(include_once MODX_CORE_PATH . 'components/minishop2/model/minishop2/minishop2.class.php')) {
            throw new Exception('You must install miniShop2 first');
        }
        $version = $this->modx->getVersionData();
        $modx23 = !empty($version) && version_compare($version['full_version'], '2.3.0', '>=');
        if (!$modx23) {
            $this->addCss(MODX_ASSETS_URL . 'components/msearch2/css/mgr/font-awesome.min.css');
        }
        $this->msDiscount = new msDiscount($this->modx);
        $this->miniShop2 = new miniShop2($this->modx);
        $this->addJavascript(MODX_MANAGER_URL . 'assets/modext/util/datetime.js');
        $this->addCss($this->msDiscount->config['cssUrl'] . 'mgr/main.css');
        $this->addJavascript($this->msDiscount->config['jsUrl'] . 'mgr/msdiscount.js');
        $this->addJavascript($this->miniShop2->config['jsUrl'] . 'mgr/minishop2.js');
        $this->addJavascript($this->miniShop2->config['jsUrl'] . 'mgr/misc/ms2.utils.js');
        $this->addJavascript($this->miniShop2->config['jsUrl'] . 'mgr/misc/ms2.combo.js');
        $this->addHtml('<script type="text/javascript">
			MODx.modx23 = ' . (int) $modx23 . ';
			miniShop2.config = ' . $this->modx->toJSON($this->miniShop2->config) . ';
			miniShop2.config.connector_url = "' . $this->miniShop2->config['connectorUrl'] . '";
			msDiscount.config = ' . $this->modx->toJSON($this->msDiscount->config) . ';
			msDiscount.config.connector_url = "' . $this->msDiscount->config['connectorUrl'] . '";
		</script>');
        parent::initialize();
    }
开发者ID:bendasvadim,项目名称:msDiscount,代码行数:30,代码来源:index.class.php

示例2: initialize

 /**
  * @return void
  */
 public function initialize()
 {
     $corePath = $this->modx->getOption('getqrcode_core_path', null, $this->modx->getOption('core_path') . 'components/getqrcode/');
     require_once $corePath . 'model/getqrcode/getqrcode.class.php';
     $this->getQRcode = new getQRcode($this->modx);
     parent::initialize();
 }
开发者ID:bendasvadim,项目名称:getQRcode,代码行数:10,代码来源:index.class.php

示例3: loadCustomCssJs

 function loadCustomCssJs()
 {
     parent::loadCustomCssJs();
     $assets_url = $this->getOption('assets_url');
     # $this->addJavascript( $assets_url . 'js/modxsite.js');
     #
     # $this->addHtml('<script type="text/javascript">
     #     ModxSite.config = '. $this->modx->toJSON($this->config).';
     # </script>');
     # $attrs = $this->modx->user->getAttributes(array(),'', true);
     # $policies = array();
     # if(!empty($attrs['modAccessContext']['mgr'])){
     #     foreach($attrs['modAccessContext']['mgr'] as $attr){
     #         foreach($attr['policy'] as $policy => $value){
     #             if(empty($policies[$policy])){
     #                 $policies[$policy] = $value;
     #             }
     #         }
     #     }
     # }
     # $this->modx->regClientStartupScript('<script type="text/javascript">
     #     Shop.policies = '. $this->modx->toJSON($policies).';
     # </script>', true);
     /*$this->addJavascript($this->getOption('assets_url').'js/shop.js'); 
      */
     return;
 }
开发者ID:bendasvadim,项目名称:NewsModxBox,代码行数:27,代码来源:index.class.php

示例4: array

 function __construct(modX &$modx, $config = array())
 {
     parent::__construct($modx, $config);
     $this->config['namespace_path'] = $this->translatePath($this->config['namespace_path']);
     $this->config['manager_url'] = $modx->getOption('composerconsole.manager_url', null, $modx->getOption('manager_url') . 'components/composerconsole/');
     $this->config['connector_url'] = $this->config['manager_url'] . 'connector.php';
 }
开发者ID:woldemir,项目名称:ComposerConsole,代码行数:7,代码来源:index.class.php

示例5: initialize

    /**
     * @return void
     */
    public function initialize()
    {
        $corePath = $this->modx->getOption('msgiftsrusynch_core_path', null, $this->modx->getOption('core_path') . 'components/msgiftsrusynch/');
        require_once $corePath . 'model/msgiftsrusynch/msgiftsrusynch.class.php';
        if (!(include_once MODX_CORE_PATH . 'components/minishop2/model/minishop2/minishop2.class.php')) {
            throw new Exception('You must install miniShop2 first');
        }
        $version = $this->modx->getVersionData();
        $modx23 = !empty($version) && version_compare($version['full_version'], '2.3.0', '>=');
        if (!$modx23) {
            $this->addCss(MODX_ASSETS_URL . 'components/msearch2/css/mgr/font-awesome.min.css');
        }
        $this->msGiftsRuSynch = new msGiftsRuSynch($this->modx);
        $this->miniShop2 = new miniShop2($this->modx);
        $this->addCss($this->msGiftsRuSynch->config['cssUrl'] . 'mgr/main.css');
        $this->addJavascript($this->msGiftsRuSynch->config['jsUrl'] . 'mgr/msgiftsrusynch.js');
        $this->addJavascript($this->miniShop2->config['jsUrl'] . 'mgr/minishop2.js');
        $this->addJavascript($this->miniShop2->config['jsUrl'] . 'mgr/misc/ms2.utils.js');
        $this->addJavascript($this->miniShop2->config['jsUrl'] . 'mgr/misc/ms2.combo.js');
        $this->addHtml('<script type="text/javascript">
			MODx.modx23 = ' . (int) $modx23 . ';
			miniShop2.config = ' . $this->modx->toJSON($this->miniShop2->config) . ';
			miniShop2.config.connector_url = "' . $this->miniShop2->config['connectorUrl'] . '";
			msGiftsRuSynch.config = ' . $this->modx->toJSON($this->msGiftsRuSynch->config) . ';
			msGiftsRuSynch.config.connector_url = "' . $this->msGiftsRuSynch->config['connectorUrl'] . '";
		</script>');
        parent::initialize();
    }
开发者ID:bendasvadim,项目名称:msGiftsRuSynch,代码行数:31,代码来源:index.class.php

示例6: array

 function __construct(modX &$modx, $config = array())
 {
     parent::__construct($modx, $config);
     $this->config['namespace_assets_path'] = $modx->call('modNamespace', 'translatePath', array(&$modx, $this->config['namespace_assets_path']));
     #manager url still called "assets_url" for safe install
     $this->config['manager_url'] = $modx->getOption('console.manager_url', null, $modx->getOption('manager_url') . 'components/console/');
     $this->config['connector_url'] = $this->config['manager_url'] . 'connectors/';
 }
开发者ID:Piterden,项目名称:modx_testfloor,代码行数:8,代码来源:console.class.php

示例7: initialize

 public function initialize()
 {
     $path = $this->modx->getOption('cronmanager.core_path', null, $this->modx->getOption('core_path') . 'components/cronmanager/');
     $this->cronmanager = $this->modx->getService('cronmanager', 'model.cronmanager.CronManager', $path);
     $this->jsURL = $this->cronmanager->config['jsUrl'];
     $this->cssURL = $this->cronmanager->config['cssUrl'];
     $this->loadBase();
     parent::initialize();
 }
开发者ID:rtripault,项目名称:MODx-CronManager,代码行数:9,代码来源:index.class.php

示例8: loadCustomCssJs

 function loadCustomCssJs()
 {
     parent::loadCustomCssJs();
     $this->addJavascript($this->getOption('assets_url') . 'js/modxsdk.js');
     $this->addHtml('<script type="text/javascript">
         modxSDK.config = ' . $this->modx->toJSON($this->config) . ';
     </script>');
     return;
 }
开发者ID:Tramp1357,项目名称:atlasorg,代码行数:9,代码来源:index.class.php

示例9: initialize

 /**
  * @return void
  */
 public function initialize()
 {
     $corePath = $this->modx->getOption('subdomainsfolder_core_path', null, $this->modx->getOption('core_path') . 'components/subdomainsfolder/');
     require_once $corePath . 'model/subdomainsfolder/subdomainsfolder.class.php';
     $this->SubdomainsFolder = new SubdomainsFolder($this->modx);
     $this->SubdomainsFolder->initialize($this->modx->context->key);
     $this->SubdomainsFolder->Tools->loadControllerFiles($this, array('css' => true, 'config' => true, 'tools' => true));
     parent::initialize();
 }
开发者ID:vgrish,项目名称:subdomainsfolder,代码行数:12,代码来源:index.class.php

示例10: __construct

 public function __construct(modX &$modx, $config = array())
 {
     require_once $modx->getOption('repoman.core_path', '', MODX_CORE_PATH . 'components/repoman/') . 'vendor/autoload.php';
     $controller = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'home';
     if (!in_array($controller, $this->valid_controllers)) {
         $_REQUEST['action'] = '404';
     }
     $assets_url = $modx->getOption('repoman.assets_url', '', MODX_ASSETS_URL . 'components/repoman/');
     $modx->regClientCSS($assets_url . 'style.css');
     parent::__construct($modx, $config);
 }
开发者ID:carnevlu,项目名称:repoman,代码行数:11,代码来源:repomanmanagercontroller.class.php

示例11: initialize

 public function initialize()
 {
     $this->bannery = new BannerY($this->modx);
     $this->addJavascript($this->bannery->config['jsUrl'] . 'mgr/bannery.js');
     $this->addHtml('<script type="text/javascript">
     Ext.onReady(function() {
         Bannery.config = ' . $this->modx->toJSON($this->bannery->config) . ';
     });
     </script>');
     return parent::initialize();
 }
开发者ID:suasti,项目名称:BannerY,代码行数:11,代码来源:index.class.php

示例12: initialize

 public function initialize()
 {
     $this->msRevaluation = new msRevaluation($this->modx);
     $this->addJavascript($this->msRevaluation->config['assets_url'] . 'js/mgr/msrevaluation.js');
     $this->addHtml('<script type="text/javascript">
         Ext.onReady(function() {
             msRevaluation.config = ' . $this->modx->toJSON($this->msRevaluation->config) . ';
         });
         </script>');
     return parent::initialize();
 }
开发者ID:svyatoslavteterin,项目名称:belton.by,代码行数:11,代码来源:index.class.php

示例13: initialize

 public function initialize()
 {
     $this->lingua = new Lingua($this->modx);
     $this->addCss($this->lingua->config['cssUrl'] . 'mgr.css');
     $this->addJavascript($this->lingua->config['jsUrl'] . 'mgr/lingua.js');
     $this->addHtml('<script type="text/javascript">
     Ext.onReady(function() {
         Lingua.config = ' . $this->modx->toJSON($this->lingua->config) . ';
     });
     </script>');
     return parent::initialize();
 }
开发者ID:DeFi-ManriquezLuis,项目名称:MTLTransfer,代码行数:12,代码来源:index.class.php

示例14: initialize

    public function initialize()
    {
        $this->ms2Gallery = new ms2Gallery($this->modx);
        $this->modx->regClientCSS($this->ms2Gallery->config['cssUrl'] . 'mgr/main.css');
        $this->addJavaScript($this->ms2Gallery->config['jsUrl'] . 'mgr/ms2gallery.js');
        $this->addHtml(str_replace('		', '', '
		<script type="text/javascript">
			ms2Gallery.config = ' . $this->modx->toJSON($this->ms2Gallery->config) . ';
			ms2Gallery.config.connector_url = "' . $this->ms2Gallery->config['connectorUrl'] . '";
		</script>'));
        parent::initialize();
    }
开发者ID:sin4end,项目名称:ms2Gallery,代码行数:12,代码来源:index.class.php

示例15: initialize

 public function initialize()
 {
     $this->simplecrm = new SimpleCRM($this->modx);
     $this->addCss($this->simplecrm->config['cssUrl'] . 'mgr.css');
     $this->addJavascript($this->simplecrm->config['jsUrl'] . 'mgr/simplecrm.js');
     $this->addHtml('<script type="text/javascript">
      Ext.onReady(function() {
          SimpleCRM.config = ' . $this->modx->toJSON($this->simplecrm->config) . ';
      });
      </script>');
     return parent::initialize();
 }
开发者ID:Vitaliz,项目名称:simpleCRM,代码行数:12,代码来源:index.class.php


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