| @@ 23-30 (lines=8) @@ | ||
| 20 | /** |
|
| 21 | * {@inheritdoc} |
|
| 22 | */ |
|
| 23 | public function rules() |
|
| 24 | { |
|
| 25 | return [ |
|
| 26 | [['username', 'password'], 'required'], |
|
| 27 | [['username', 'password'], 'string', 'max' => 64], |
|
| 28 | [['remember_me'], 'boolean'], |
|
| 29 | ]; |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * {@inheritdoc} |
|
| @@ 54-61 (lines=8) @@ | ||
| 51 | /** |
|
| 52 | * {@inheritdoc} |
|
| 53 | */ |
|
| 54 | public function rules() |
|
| 55 | { |
|
| 56 | return [ |
|
| 57 | [['id', 'enabled'], 'required'], |
|
| 58 | [['id'], 'string', 'max' => 45], |
|
| 59 | [['enabled'], 'boolean'], |
|
| 60 | ]; |
|
| 61 | } |
|
| 62 | ||
| 63 | public function contentRules() |
|
| 64 | { |
|