예제 #1
0
 public function __construct($children = null)
 {
     if ($children instanceof FieldSet) {
         $this->children = $children;
     } elseif (is_array($children)) {
         $this->children = new FieldSet($children);
     } else {
         $children = is_array(func_get_args()) ? func_get_args() : array();
         $this->children = new FieldSet($children);
     }
     $this->children->setContainerField($this);
     Object::__construct();
 }
 public function __construct($children = null)
 {
     if ($children instanceof FieldSet) {
         $this->children = $children;
     } elseif (is_array($children)) {
         $this->children = new FieldSet($children);
     } else {
         $children = is_array(func_get_args()) ? func_get_args() : array();
         $this->children = new FieldSet($children);
     }
     $this->children->setContainerField($this);
     // Skipping FormField::__construct(), but we have to make sure this
     // doesn't count as a broken constructor
     $this->brokenOnConstruct = false;
     Object::__construct();
 }