예제 #1
0
파일: Field.php 프로젝트: appcia/webwork
 /**
  * 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);
 }