mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
w
This commit is contained in:
@ -59,7 +59,7 @@ class CNumberValidator 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)
|
||||
@ -97,7 +97,7 @@ class CNumberValidator 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