📖 Fixed client-side and server-side grammar in all files

This commit is contained in:
SilverFire - Dmitry Naumenko
2016-09-08 10:16:02 +03:00
parent a2df4730f4
commit 494842636e
11 changed files with 22 additions and 22 deletions

View File

@ -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)
{

View File

@ -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:
*