예제 #1
0
 public function __construct(array $dataray = array())
 {
     if (isset($dataray['form']) && is_object($dataray['form']) && $dataray['form'] instanceof \System\Form) {
         $this->form = $dataray['form'];
         unset($dataray['form']);
     } else {
         throw new \System\Error\Argument("You must pass instance of 'System\\Form' into element attributes.");
     }
     parent::__construct($dataray);
 }
예제 #2
0
파일: module.php 프로젝트: just-paja/fudjan
 /**
  * Public constructor compatible with attr model
  * @return $this
  */
 public function __construct(array $dataray = array())
 {
     $this::$instance_count++;
     return parent::__construct($dataray);
 }