1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Installer;
13
14 use ICanBoogie\HTTP\Request;
15
16 abstract class Operation extends \ICanBoogie\Operation
17 {
18 protected function get_installer_operation_id()
19 {
20 return strtolower(substr(basename(strtr(get_class($this), '\\', '/')), 0, -9));
21 }
22
23 public function __invoke(Request $request)
24 {
25 global $core;
26
27 $core->session->install['done'][$this->installer_operation_id] = false;
28
29 return parent::__invoke($request);
30 }
31
32 protected function process()
33 {
34 global $core;
35
36 $core->session->install['done'][$this->installer_operation_id] = true;
37
38 return true;
39 }
40 }
41