This commit is contained in:
Qiang Xue
2011-07-22 17:09:47 -04:00
parent ef4ed7c803
commit 0c7a75bef7
20 changed files with 136 additions and 189 deletions

View File

@@ -60,7 +60,7 @@ class CStringValidator 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)
@@ -93,7 +93,7 @@ class CStringValidator 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