1 | <?php |
||
18 | class Settings extends BackendController |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Module model instance |
||
23 | * @var \gplcart\core\models\Module $module |
||
24 | */ |
||
25 | protected $module; |
||
26 | |||
27 | /** |
||
28 | * @param ModuleModel $module |
||
29 | */ |
||
30 | public function __construct(ModuleModel $module) |
||
36 | |||
37 | /** |
||
38 | * Route page callback to display the module settings page |
||
39 | */ |
||
40 | public function editSettings() |
||
50 | |||
51 | /** |
||
52 | * Sets module settings |
||
53 | */ |
||
54 | protected function setDataModuleSettings() |
||
62 | |||
63 | /** |
||
64 | * Set title on the module settings page |
||
65 | */ |
||
66 | protected function setTitleEditSettings() |
||
72 | |||
73 | /** |
||
74 | * Set breadcrumbs on the module settings page |
||
75 | */ |
||
76 | protected function setBreadcrumbEditSettings() |
||
92 | |||
93 | /** |
||
94 | * Saves the submitted settings |
||
95 | */ |
||
96 | protected function submitSettings() |
||
102 | |||
103 | /** |
||
104 | * Validate submitted module settings |
||
105 | */ |
||
106 | protected function validateSettings() |
||
121 | |||
122 | /** |
||
123 | * Update module settings |
||
124 | */ |
||
125 | protected function updateSettings() |
||
131 | |||
132 | /** |
||
133 | * Render and output the module settings page |
||
134 | */ |
||
135 | protected function outputEditSettings() |
||
139 | |||
140 | } |
||
141 |