| 1 | <?php /** MicroCaptchaValidator */ |
||
| 21 | class CaptchaValidator extends BaseValidator |
||
| 22 | { |
||
| 23 | /** @var string $captcha compiled captcha */ |
||
| 24 | protected $captcha = ''; |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor validator |
||
| 29 | * |
||
| 30 | * @access public |
||
| 31 | * |
||
| 32 | * @param array $params Configuration array |
||
| 33 | * |
||
| 34 | * @result void |
||
| 35 | * @throws Exception |
||
| 36 | */ |
||
| 37 | public function __construct(array $params) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritdoc |
||
| 46 | */ |
||
| 47 | public function validate(IFormModel $model) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @inheritdoc |
||
| 66 | */ |
||
| 67 | public function client(IFormModel $model) |
||
| 71 | } |
||
| 72 |