当前位置: 首页>>代码示例>>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;未经允许,请勿转载。