/** * Validate value * * @param array $data * @return boolean */ public function validate(array &$data) { if ($this->min !== null) { $this->validator->setMin($this->min); } if ($this->max !== null) { $this->validator->setMax($this->max); } $this->validator->setFormat($this->getFormat()); $this->validator->setFormatRules($this->getFormatRules()); return parent::validate($data); }
/** * Constructor * */ public function __construct() { parent::__construct('', true); }
/** * Validate value * * @param array $data * @return boolean */ public function validate(array &$data) { if ($this->max !== null) { $this->validator->setMax($this->max); } if ($this->min !== null) { $this->validator->setMin($this->min); } return parent::validate($data); }
public function __construct() { parent::__construct(BaseField::getClass()); }
/** * Validate value * * @param array $data * @return boolean */ public function validate(array &$data) { return parent::validate($data); }
/** * Validate value * * @param array $data * @return boolean */ public function validate(array &$data) { $this->validator->setValue($this->true_value, $this->false_value); $this->validator->strict($this->strict); return parent::validate($data); }
/** * Constructor * * @param string $label * @param boolean $required * @param array $enums */ public function __construct($label = null, $required = false, array $enums = []) { parent::__construct($label, $required); $this->enums = $enums; }