本文整理匯總了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');
}