Exemplo n.º 1
0
 public function __construct($id = null)
 {
     parent::__construct();
     if (!is_null($id)) {
         $this->getById($id);
     }
 }
Exemplo n.º 2
0
 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();
         }
     }
 }
Exemplo n.º 3
0
 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;
 }