| @@ 28-34 (lines=7) @@ | ||
| 25 | /** |
|
| 26 | * {@inheritdoc} |
|
| 27 | */ |
|
| 28 | public function rules() |
|
| 29 | { |
|
| 30 | return [ |
|
| 31 | [['webpath'], 'required'], |
|
| 32 | [['webpath'], 'string', 'max' => 256], |
|
| 33 | ]; |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * {@inheritdoc} |
|
| @@ 53-59 (lines=7) @@ | ||
| 50 | /** |
|
| 51 | * {@inheritdoc} |
|
| 52 | */ |
|
| 53 | public function rules() |
|
| 54 | { |
|
| 55 | return [ |
|
| 56 | [['id'], 'required'], |
|
| 57 | [['id'], 'string', 'max' => 45], |
|
| 58 | ]; |
|
| 59 | } |
|
| 60 | ||
| 61 | public function contentRules() |
|
| 62 | { |
|