| @@ 32-40 (lines=9) @@ | ||
| 29 | /** |
|
| 30 | * @inheritdoc |
|
| 31 | */ |
|
| 32 | public function rules() |
|
| 33 | { |
|
| 34 | return [ |
|
| 35 | [['value'], 'string'], |
|
| 36 | [['preload'], 'integer'], |
|
| 37 | [['key'], 'unique'], |
|
| 38 | [['name', 'key'], 'string', 'max' => 255] |
|
| 39 | ]; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @inheritdoc |
|
| @@ 30-37 (lines=8) @@ | ||
| 27 | /** |
|
| 28 | * @inheritdoc |
|
| 29 | */ |
|
| 30 | public function rules() |
|
| 31 | { |
|
| 32 | return [ |
|
| 33 | [['key', 'name', 'content'], 'required'], |
|
| 34 | [['key'], 'unique'], |
|
| 35 | [['key', 'name', 'content'], 'string', 'max' => 255] |
|
| 36 | ]; |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @inheritdoc |
|