當前位置: 首頁>>代碼示例>>PHP>>正文


PHP modExtraManagerController::initialize方法代碼示例

本文整理匯總了PHP中modExtraManagerController::initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP modExtraManagerController::initialize方法的具體用法?PHP modExtraManagerController::initialize怎麽用?PHP modExtraManagerController::initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在modExtraManagerController的用法示例。


在下文中一共展示了modExtraManagerController::initialize方法的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('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

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

示例4: 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

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

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

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

示例8: initialize

 public function initialize()
 {
     $this->moneybird = new MoneyBird($this->modx);
     $this->addCss($this->moneybird->config['cssUrl'] . 'mgr.css');
     $this->addJavascript($this->moneybird->config['jsUrl'] . 'mgr/moneybird.js');
     $this->addHtml('<script type="text/javascript">
     Ext.onReady(function() {
         MoneyBird.config = ' . $this->modx->toJSON($this->moneybird->config) . ';
     });
     </script>');
     return parent::initialize();
 }
開發者ID:ASDAFF,項目名稱:MODX-MoneyBird,代碼行數:12,代碼來源:index.class.php

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

示例10: 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

示例11: initialize

 public function initialize()
 {
     $this->fleetmanager = new Fleetmanager($this->modx);
     $this->addCss($this->fleetmanager->config['cssUrl'] . 'mgr.css');
     $this->addJavascript($this->fleetmanager->config['jsUrl'] . 'mgr/fleetmanager.js');
     $this->addHtml('<script type="text/javascript">
         Ext.onReady(function() {
             Fleetmanager.config = ' . $this->modx->toJSON($this->fleetmanager->config) . ';
         });
         </script>');
     return parent::initialize();
 }
開發者ID:ananimals,項目名稱:fleetmanager-old,代碼行數:12,代碼來源:index.class.php

示例12: initialize

 public function initialize()
 {
     $this->customurls = new CustomUrls($this->modx);
     //$this->addCss($this->customurls->config['cssUrl'].'mgr.css');
     $this->addJavascript($this->customurls->config['jsUrl'] . 'mgr/customurls.js');
     $this->addHtml('<script type="text/javascript">
     Ext.onReady(function() {
         CustomUrls.config = ' . $this->modx->toJSON($this->customurls->config) . ';
     });
     </script>');
     return parent::initialize();
 }
開發者ID:svyatoslavteterin,項目名稱:belton.by,代碼行數:12,代碼來源:index.class.php

示例13: initialize

 public function initialize()
 {
     $this->hits = new Hits($this->modx);
     //$this->addCss($this->hits->config['cssUrl'].'mgr.css');
     //$this->addJavascript($this->hits->config['jsUrl'].'mgr/hits.js');
     /*$this->addHtml('<script type="text/javascript">
       Ext.onReady(function() {
           Hits.config = '.$this->modx->toJSON($this->hits->config).';
       });
       </script>');*/
     return parent::initialize();
 }
開發者ID:sepiariver,項目名稱:hits,代碼行數: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->ulogin = new uLogin($this->modx);
     //$this->addCss($this->ulogin->config['cssUrl'].'mgr.css');
     $this->addJavascript($this->ulogin->config['jsUrl'] . 'mgr/ulogin.js');
     $this->addHtml('<script type="text/javascript">
     Ext.onReady(function() {
         Ulogin.config = ' . $this->modx->toJSON($this->ulogin->config) . ';
     });
     </script>');
     return parent::initialize();
 }
開發者ID:bendasvadim,項目名稱:ulogin-ModX,代碼行數:12,代碼來源:index.class.php


注:本文中的modExtraManagerController::initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。