企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# 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](#) »