ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Abstract class Phalcon\\Validation\\Validator # 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](#) »