1 | <?php |
||
17 | class Event extends Base |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Report model class instance |
||
22 | * @var \gplcart\core\models\Report $report |
||
23 | */ |
||
24 | protected $report; |
||
25 | |||
26 | /** |
||
27 | * @param ReportModel $report |
||
28 | */ |
||
29 | public function __construct(ReportModel $report) |
||
35 | |||
36 | /** |
||
37 | * Callback for "event-get" command |
||
38 | */ |
||
39 | public function cmdGetEvent() |
||
46 | |||
47 | /** |
||
48 | * Callback for "event-delete" command |
||
49 | */ |
||
50 | public function cmdDeleteEvent() |
||
60 | |||
61 | /** |
||
62 | * Returns an array of events |
||
63 | * @return array |
||
64 | */ |
||
65 | protected function getListEvent() |
||
76 | |||
77 | /** |
||
78 | * Output events in a table |
||
79 | * @param array $events |
||
80 | */ |
||
81 | protected function outputFormatTableEvent(array $events) |
||
104 | |||
105 | } |
||
106 |