public function __construct($id = null) { parent::__construct(); if (!is_null($id)) { $this->getById($id); } }
function __construct($init) { parent::__construct($init); $this->cells = array(); for ($row = 1; $row <= self::size; $row++) { $this->cells[$row] = array(); for ($col = 1; $col <= self::size; $col++) { $this->cells[$row][$col] = new Cell(); } } }
public function __construct(Web $w) { parent::__construct($w); $this->setPassword(hash("md5", $w->moduleConf("report", "__password"))); }
public function __construct($filePath, $model) { parent::__construct(); $this->filePath = $filePath; $this->model = $model; }