多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Abstract class **Phalcon\Validation\Validator**[](# "永久链接至标题") *implements*[*Phalcon\Validation\ValidatorInterface*](#) This is a base class for validators ### Methods[](# "永久链接至标题") public **__construct** ([*unknown* $options]) Phalcon\Validation\Validator constructor public **isSetOption** (*unknown* $key) Checks if an option is defined public **hasOption** (*unknown* $key) Checks if an option is defined public **getOption** (*unknown* $key, [*unknown* $defaultValue]) Returns an option in the validator's options Returns null if the option hasn't set public **setOption** (*unknown* $key, *unknown* $value) Sets an option in the validator abstract public **validate** (*unknown* $validation, *unknown* $attribute) Executes the validation | - [索引](# "总目录") - [下一页](# "Class Phalcon\Validation\Validator\Alnum") | - [上一页](# "Class Phalcon\Validation\Message\Group") | - [API Indice](#) »