mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
w
This commit is contained in:
@@ -40,7 +40,7 @@ class CCaptchaValidator extends Validator
|
||||
/**
|
||||
* Validates the attribute of the object.
|
||||
* If there is any error, the error message is added to the object.
|
||||
* @param CModel $object the object being validated
|
||||
* @param \yii\base\Model $object the object being validated
|
||||
* @param string $attribute the attribute being validated
|
||||
*/
|
||||
public function validateAttribute($object, $attribute)
|
||||
@@ -82,7 +82,7 @@ class CCaptchaValidator extends Validator
|
||||
|
||||
/**
|
||||
* Returns the JavaScript needed for performing client-side validation.
|
||||
* @param CModel $object the data object being validated
|
||||
* @param \yii\base\Model $object the data object being validated
|
||||
* @param string $attribute the name of the attribute to be validated.
|
||||
* @return string the client-side validation script.
|
||||
* @see CActiveForm::enableClientValidation
|
||||
|
||||
Reference in New Issue
Block a user