コード例 #1
0
ファイル: ModuleWidget.php プロジェクト: itillawarra/cmfive
 /**
  *	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);
 }
コード例 #2
0
ファイル: DbObject.php プロジェクト: itillawarra/cmfive
 /**
  * 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);
     }
 }
コード例 #3
0
ファイル: LogService.php プロジェクト: itillawarra/cmfive
 public function __construct(\Web $w)
 {
     parent::__construct($w);
     $this->addLogger(LogService::$system_logger);
 }
コード例 #4
0
ファイル: SessionManager.php プロジェクト: itillawarra/cmfive
 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');
 }
コード例 #5
0
ファイル: MailService.php プロジェクト: itillawarra/cmfive
 public function __construct(Web $w)
 {
     parent::__construct($w);
     $this->initTransport();
 }