/** * Constructor * * @param Form $form Form * @param string $name Name * @param mixed $value Initial value */ public function __construct(Form $form, $name, $value = null) { $this->form = $form; $this->validators = array(); $this->filters = array(); $this->valid = true; $this->binds = array(); $this->setName($name); $this->setValue($value); $form->addField($this); }