/** * Instantiate with Web so the module has access to models and output * * @param Web $w; */ public function __construct(Web &$w, $module_config = null) { if (!empty($module_config)) { $this->module_config = $module_config; } parent::__construct($w); }
/** * Constructor * * @param $w */ function __construct(Web &$w) { parent::__construct($w); // add standard aspects if (property_exists($this, "_modifiable") && !property_exists($this, "_remove_modifiable")) { $this->_modifiable = new AspectModifiable($this); } if (property_exists($this, "_versionable") && !property_exists($this, "_remove_versionable")) { $this->_versionable = new AspectVersionable($this); } if (property_exists($this, "_searchable") && !property_exists($this, "_remove_searchable")) { $this->_searchable = new AspectSearchable($this); } }
public function __construct(\Web $w) { parent::__construct($w); $this->addLogger(LogService::$system_logger); }
function __construct(Web $w) { parent::__construct($w); session_set_save_handler(array($this, "open"), array($this, "close"), array($this, "read"), array($this, "write"), array($this, "destroy"), array($this, "gc")); register_shutdown_function('session_write_close'); }
public function __construct(Web $w) { parent::__construct($w); $this->initTransport(); }