Constructor.
public __construct ( string $id, |
||
$id | string | the ID of this module. |
$parent | the parent module (if any). | |
$config | array | name-value pairs that will be used to initialize the object properties. |
public function __construct($id, $parent = null, $config = array()) { parent::__construct($id, $parent, $config); $this->ipnUrl = Yii::$app->urlManager->createAbsoluteUrl($this->ipnUrl); $this->expressSuccessUrl = Yii::$app->urlManager->createAbsoluteUrl($this->expressSuccessUrl); $this->subscriptionExpressSuccessUrl = Yii::$app->urlManager->createAbsoluteUrl($this->subscriptionExpressSuccessUrl); $this->cancelUrl = Yii::$app->urlManager->createAbsoluteUrl($this->cancelUrl); }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { foreach ($this->getModuleComponents() as $name => $component) { if (!isset($config['components'][$name])) { $config['components'][$name] = $component; } elseif (is_array($config['components'][$name]) && !isset($config['components'][$name]['class'])) { $config['components'][$name]['class'] = $component['class']; } } parent::__construct($id, $parent, $config); }
/** * Constructor. * @param string $id the ID of this module * @param Module $parent the parent module (if any) * @param array $config name-value pairs that will be used to initialize the object properties */ public function __construct($id, $parent = null, $config = []) { parent::__construct($id, $parent, $config); $this->db_name = 'fullplanner_test_webception'; $this->db_username = '******'; $this->db_password = '******'; // Open the database connection for the module $this->db = new \yii\db\Connection(['dsn' => 'mysql:dbname=' . $this->db_name . ';host=localhost', 'username' => $this->db_username, 'password' => $this->db_password]); $this->db->open(); $this->layout = 'main'; }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { foreach ($this->getModuleComponents() as $name => $component) { if (!isset($config['components'][$name])) { $config['components'][$name] = $component; } elseif (is_array($config['components'][$name]) && !isset($config['components'][$name]['class'])) { $config['components'][$name]['class'] = $component['class']; } } if (empty($this->mediarepositoryPath)) { $this->mediarepositoryPath = Yii::getAlias('@webroot') . DIRECTORY_SEPARATOR . 'mediarepository'; } parent::__construct($id, $parent, $config); }
public function __construct($id, $parent, array $config = []) { $config = ArrayHelper::merge(['components' => ['storage' => ['class' => 'solarpatrol\\tle\\FileStorage']]], $config); parent::__construct($id, $parent, $config); }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { $config = array_merge(['modules' => $this->modules()], $config); parent::__construct($id, $parent, $config); }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { $this->registerTranslations(); $config = ArrayHelper::merge(['aliases' => ['@admRoot' => '@vendor/pavlinter/yii2-adm/adm'], 'controllerMap' => ['elfinder' => true], 'components' => ['manager' => ['class' => 'pavlinter\\adm\\ModelManager'], 'user' => Yii::$app->getUser()]], $config); parent::__construct($id, $parent, $config); }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { $this->registerTranslations(); $config = ArrayHelper::merge(['components' => ['manager' => ['class' => 'app\\modules\\admhidemenu\\ModelManager']]], $config); parent::__construct($id, $parent, $config); }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { $this->registerTranslations(); $config = ArrayHelper::merge(['files' => ['page' => ['dirs' => ['@webroot/files/pages/{id}/gallery'], 'startPath' => 'pages::{id}', 'maxWidth' => 1500, 'maxHeight' => 1500, 'watermark' => 0], 'main' => ['dirs' => ['@webroot/files/pages/{id}/gallery'], 'startPath' => 'pages::{id}', 'maxWidth' => 1500, 'maxHeight' => 1500, 'watermark' => 0]], 'components' => ['manager' => ['class' => 'pavlinter\\admpages\\ModelManager']]], $config); parent::__construct($id, $parent, $config); }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { $this->registerTranslations(); $config = ArrayHelper::merge(['components' => ['storage' => ['class' => 'app\\modules\\cloud\\components\\Storage']]], $config); parent::__construct($id, $parent, $config); }
/** * @inheritdoc */ public function __construct($id, $parent = null, $config = []) { $config = ArrayHelper::merge(['components' => ['manager' => ['class' => 'pavlinter\\admmailing\\ModelManager']]], $config); parent::__construct($id, $parent, $config); }
function __construct($id, $parent = null, $config = []) { parent::__construct($id, $parent = null, $config = []); }
/** * Create a new Jaxon instance. * * @return void */ public function __construct() { // Call the parent contructor after member initialisation parent::__construct('jaxon'); }