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


PHP modExtraManagerController::__construct方法代碼示例

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


在下文中一共展示了modExtraManagerController::__construct方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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']));
     $this->config['manager_url'] = $modx->getOption("{$this->module}.manager_url", null, $modx->getOption('manager_url') . "components/{$this->module}/");
     $this->config['connectorsUrl'] = $this->config['manager_url'] . 'connectors/';
 }
開發者ID:MODX-Club,項目名稱:modRedirect,代碼行數:7,代碼來源:index.class.php

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

示例3: array

 function __construct(modX &$modx, $config = array())
 {
     parent::__construct($modx, $config);
     $namespace = "shopmodxgroupedit";
     $this->config['assets'] = $modx->getOption("{$namespace}.manager_url", null, $modx->getOption('manager_url') . "components/{$namespace}/");
     $this->config['connectors_url'] = $this->config['assets'] . 'connectors/';
     $this->config['connector_url'] = $this->config['connectors_url'] . 'connector.php';
 }
開發者ID:Tramp1357,項目名稱:atlasorg,代碼行數:8,代碼來源:index.class.php

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

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

示例6: array

 function __construct(modX &$modx, $config = array())
 {
     parent::__construct($modx, $config);
     $namespace = "modxsite";
     $manager_url = $modx->getOption('manager_url');
     $path = "{$manager_url}components/{$namespace}/";
     # $this->config['namespace_assets_path'] = $modx->call('modNamespace','translatePath',array(&$modx, $this->config['namespace_assets_path']));
     $this->config['manager_url'] = $this->config['assets'] = $this->config['assets_url'] = $modx->getOption("{$namespace}.manager_url", null, $path);
     $this->config['connectors_url'] = $this->config['manager_url'] . 'connectors/';
     $this->config['connector_url'] = $this->config['connectors_url'] . 'connector.php';
 }
開發者ID:bendasvadim,項目名稱:NewsModxBox,代碼行數:11,代碼來源:index.class.php

示例7: array

 function __construct(\modX &$modx, $config = array())
 {
     parent::__construct($modx, $config);
     static::$x =& $modx;
     // kinda dumb...
 }
開發者ID:crecorn,項目名稱:assetmanager,代碼行數:6,代碼來源:BaseController.php

示例8: array

 function __construct(\modX &$modx, $config = array())
 {
     parent::__construct($modx, $config);
     header('Content-Type: application/json');
 }
開發者ID:crecorn,項目名稱:assetmanager,代碼行數:5,代碼來源:APIController.php


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