| @@ 32-41 (lines=10) @@ | ||
| 29 | /** |
|
| 30 | * @inheritdoc |
|
| 31 | */ |
|
| 32 | public function rules() |
|
| 33 | { |
|
| 34 | return [ |
|
| 35 | [['name', 'sort_field'], 'required'], |
|
| 36 | [['asc_desc'], 'string'], |
|
| 37 | [['enabled', 'sort_order'], 'integer'], |
|
| 38 | ['asc_desc', 'default', 'value'=>'asc',], |
|
| 39 | [['name', 'sort_field'], 'string', 'max' => 255] |
|
| 40 | ]; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @inheritdoc |
|
| @@ 60-69 (lines=10) @@ | ||
| 57 | /** |
|
| 58 | * @inheritdoc |
|
| 59 | */ |
|
| 60 | public function rules() |
|
| 61 | { |
|
| 62 | return [ |
|
| 63 | [['object_model_id', 'property_group_id', 'key'], 'required'], |
|
| 64 | [['object_model_id', 'property_group_id'], 'integer'], |
|
| 65 | [['key'], 'string', 'max' => 255], |
|
| 66 | [['value'], 'string'], |
|
| 67 | [['value'], 'default', 'value' => ''], |
|
| 68 | ]; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * @param integer|null $model_id |
|
| @@ 72-80 (lines=9) @@ | ||
| 69 | /** |
|
| 70 | * @inheritdoc |
|
| 71 | */ |
|
| 72 | public function rules() |
|
| 73 | { |
|
| 74 | return [ |
|
| 75 | [['property_id', 'name', 'value'], 'required'], |
|
| 76 | [['property_id', 'sort_order', 'dont_filter'], 'integer'], |
|
| 77 | [['title_prepend'], 'boolean'], |
|
| 78 | [['name', 'value', 'slug', 'title_append'], 'string'] |
|
| 79 | ]; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * @inheritdoc |
|
| @@ 53-61 (lines=9) @@ | ||
| 50 | /** |
|
| 51 | * @inheritdoc |
|
| 52 | */ |
|
| 53 | public function rules() |
|
| 54 | { |
|
| 55 | return [ |
|
| 56 | [['slider_id', 'sort_order', 'active'], 'integer'], |
|
| 57 | [['image', 'link', 'custom_view_file', 'css_class'], 'string', 'max' => 255], |
|
| 58 | [['active'], 'default', 'value'=>1], |
|
| 59 | [['text'], 'string'] |
|
| 60 | ]; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @inheritdoc |
|