| @@ 51-58 (lines=8) @@ | ||
| 48 | /** |
|
| 49 | * @inheritdoc |
|
| 50 | */ |
|
| 51 | public function rules() |
|
| 52 | { |
|
| 53 | return [ |
|
| 54 | [['type', 'from', 'to'], 'string'], |
|
| 55 | [['from', 'to'], 'required'], |
|
| 56 | [['active'], 'boolean'] |
|
| 57 | ]; |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * @inheritdoc |
|
| @@ 26-33 (lines=8) @@ | ||
| 23 | /** |
|
| 24 | * @inheritdoc |
|
| 25 | */ |
|
| 26 | public function rules() |
|
| 27 | { |
|
| 28 | return [ |
|
| 29 | [['uid', 'url'], 'required'], |
|
| 30 | [['url'], 'string'], |
|
| 31 | [['uid'], 'string', 'max' => 255] |
|
| 32 | ]; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @inheritdoc |
|
| @@ 33-40 (lines=8) @@ | ||
| 30 | /** |
|
| 31 | * @inheritdoc |
|
| 32 | */ |
|
| 33 | public function rules() |
|
| 34 | { |
|
| 35 | return [ |
|
| 36 | [['description', 'code'], 'string'], |
|
| 37 | [['code'], 'required'], |
|
| 38 | [['name'], 'string', 'max' => 255] |
|
| 39 | ]; |
|
| 40 | } |
|
| 41 | ||
| 42 | public function behaviors() |
|
| 43 | { |
|