mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
📖 Fixed client-side and server-side grammar in all files
This commit is contained in:
@ -383,10 +383,10 @@ class FileValidator extends Validator
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the client side validation options.
|
||||
* Returns the client-side validation options.
|
||||
* @param \yii\base\Model $model the model being validated
|
||||
* @param string $attribute the attribute name being validated
|
||||
* @return array the client side validation options
|
||||
* @return array the client-side validation options
|
||||
*/
|
||||
protected function getClientOptions($model, $attribute)
|
||||
{
|
||||
|
||||
@ -141,8 +141,8 @@ class Validator extends Component
|
||||
* The signature of the callable should be `function ($model, $attribute)`, where `$model` and `$attribute`
|
||||
* refer to the model and the attribute currently being validated. The callable should return a boolean value.
|
||||
*
|
||||
* This property is mainly provided to support conditional validation on the server side.
|
||||
* If this property is not set, this validator will be always applied on the server side.
|
||||
* This property is mainly provided to support conditional validation on the server-side.
|
||||
* If this property is not set, this validator will be always applied on the server-side.
|
||||
*
|
||||
* The following example will enable the validator only when the country currently selected is USA:
|
||||
*
|
||||
@ -157,12 +157,12 @@ class Validator extends Component
|
||||
public $when;
|
||||
/**
|
||||
* @var string a JavaScript function name whose return value determines whether this validator should be applied
|
||||
* on the client side. The signature of the function should be `function (attribute, value)`, where
|
||||
* on the client-side. The signature of the function should be `function (attribute, value)`, where
|
||||
* `attribute` is an object describing the attribute being validated (see [[clientValidateAttribute()]])
|
||||
* and `value` the current value of the attribute.
|
||||
*
|
||||
* This property is mainly provided to support conditional validation on the client side.
|
||||
* If this property is not set, this validator will be always applied on the client side.
|
||||
* This property is mainly provided to support conditional validation on the client-side.
|
||||
* If this property is not set, this validator will be always applied on the client-side.
|
||||
*
|
||||
* The following example will enable the validator only when the country currently selected is USA:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user