예제 #1
0
파일: FloatField.php 프로젝트: sndsgd/form
 public function __construct(string $name = "")
 {
     parent::__construct($name);
     $this->addRule(new \sndsgd\form\rule\FloatRule());
 }
예제 #2
0
파일: MapField.php 프로젝트: sndsgd/form
 public function __construct(string $name, ValueField $keyField, FieldInterface $valueField)
 {
     parent::__construct($name);
     $this->keyField = $keyField->setParent($this);
     $this->valueField = $valueField->setParent($this);
 }