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/'; }
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'; }
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'; }
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/'; }
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); }
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'; }
function __construct(\modX &$modx, $config = array()) { parent::__construct($modx, $config); static::$x =& $modx; // kinda dumb... }
function __construct(\modX &$modx, $config = array()) { parent::__construct($modx, $config); header('Content-Type: application/json'); }