Ejemplo n.º 1
0
 public function __construct($array = [])
 {
     foreach ($array as $key => $value) {
         if (!is_array($value)) {
             continue;
         }
         $array[$key] = new ArrayConfig($value);
     }
     parent::__construct($array);
 }
Ejemplo n.º 2
0
 public function __construct(Form $form, $array = [], $flags = StdArrayObject::ARRAY_AS_PROPS, $iterator_class = "ArrayIterator")
 {
     parent::__construct($array, $flags, $iterator_class);
     self::$forms[spl_object_hash($this)] = $form;
 }