| 1 | <?php |
||
| 8 | class FormSettings extends Model |
||
| 9 | { |
||
| 10 | public $guestAdd; |
||
| 11 | public $useCaptcha; |
||
| 12 | |||
| 13 | /** @var array $_configs */ |
||
| 14 | private $_configs; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * FormSettings constructor. Pass array of configs inside the model |
||
| 18 | * @param array $configs |
||
| 19 | */ |
||
| 20 | public function __construct(array $configs) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Set default model values by passed config array |
||
| 28 | */ |
||
| 29 | public function before() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Validation rules |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function rules() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Labels to display in form |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function labels() |
||
| 61 | |||
| 62 | } |