Esempio n. 1
0
 public function __construct($name)
 {
     parent::__construct($name);
     $this->collectionComponentRenderer = new DefaultCollectionComponentRenderer();
     $this->inputData = array();
     $this->components = array();
 }
Esempio n. 2
0
 /**
  * @param string $name The name of the field in the HTTP request
  * @param string $label The label of the field
  * @param array $ruleSet
  */
 public function __construct($name, $label, array $ruleSet = array())
 {
     parent::__construct($name);
     $this->id = $name;
     $this->label = $label;
     $this->ruleSet = $ruleSet;
     $this->errors = array();
     $this->validated = false;
     $this->value = null;
     $this->linkedLabel = true;
     $this->fieldComponentRenderer = new DefaultFieldComponentRenderer();
 }