1 | <?php |
||
18 | class Demo extends BackendController |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Demo module model instance |
||
23 | * @var \gplcart\modules\demo\models\Demo $demo |
||
24 | */ |
||
25 | protected $demo; |
||
26 | |||
27 | /** |
||
28 | * @param DemoModuleModel $demo |
||
29 | */ |
||
30 | public function __construct(DemoModuleModel $demo) |
||
36 | |||
37 | /** |
||
38 | * Route page callback |
||
39 | */ |
||
40 | public function editDemo() |
||
51 | |||
52 | /** |
||
53 | * Set title on the demo content creation page |
||
54 | */ |
||
55 | protected function setTitleEditDemo() |
||
59 | |||
60 | /** |
||
61 | * Set breadcrumbs on the demo content creation page |
||
62 | */ |
||
63 | protected function setBreadcrumbEditDemo() |
||
72 | |||
73 | /** |
||
74 | * Handles submitted data |
||
75 | */ |
||
76 | protected function submitDemo() |
||
84 | |||
85 | /** |
||
86 | * Validates submitted data |
||
87 | * @return boolean |
||
88 | */ |
||
89 | protected function validateDemo() |
||
100 | |||
101 | /** |
||
102 | * Creates the demo content |
||
103 | */ |
||
104 | protected function createDemo() |
||
118 | |||
119 | /** |
||
120 | * Delete the previously created demo content |
||
121 | */ |
||
122 | protected function deleteDemo() |
||
136 | |||
137 | /** |
||
138 | * Render and output the demo content creation page |
||
139 | */ |
||
140 | protected function outputEditDemo() |
||
144 | |||
145 | } |
||
146 |