本文整理汇总了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/';
}
示例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';
}
示例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';
}
示例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/';
}
示例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);
}
示例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';
}
示例7: array
function __construct(\modX &$modx, $config = array())
{
parent::__construct($modx, $config);
static::$x =& $modx;
// kinda dumb...
}
示例8: array
function __construct(\modX &$modx, $config = array())
{
parent::__construct($modx, $config);
header('Content-Type: application/json');
}