Global DOCS update: ~~~ replaced with ```

This commit is contained in:
SilverFire - Dmitry Naumenko
2015-12-02 23:15:28 +02:00
parent c96cbfa8e6
commit cd87d67f34
89 changed files with 399 additions and 398 deletions

View File

@@ -14,7 +14,7 @@ use yii\base\Model;
/**
* EachValidator validates an array by checking each of its elements against an embedded validation rule.
*
* ~~~php
* ```php
* class MyModel extends Model
* {
* public $categoryIDs = [];
@@ -27,7 +27,7 @@ use yii\base\Model;
* ]
* }
* }
* ~~~
* ```
*
* > Note: This validator will not work with inline validation rules in case of usage outside the model scope,
* e.g. via [[validate()]] method.
@@ -43,10 +43,10 @@ class EachValidator extends Validator
* contain attribute list as the first element.
* For example:
*
* ~~~
* ```php
* ['integer']
* ['match', 'pattern' => '/[a-z]/is']
* ~~~
* ```
*
* Please refer to [[yii\base\Model::rules()]] for more details.
*/