1 | <?php |
||
18 | class Library extends Command |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Library class instance |
||
23 | * @var \gplcart\core\Library $library |
||
24 | */ |
||
25 | protected $library; |
||
26 | |||
27 | /** |
||
28 | * @param CoreLibrary $library |
||
29 | */ |
||
30 | public function __construct(CoreLibrary $library) |
||
36 | |||
37 | /** |
||
38 | * Callback for "library-get" command |
||
39 | */ |
||
40 | public function cmdGetLibrary() |
||
47 | |||
48 | /** |
||
49 | * Returns an array of libraries |
||
50 | * @return array |
||
51 | */ |
||
52 | protected function getListLibrary() |
||
72 | |||
73 | /** |
||
74 | * Output libraries in a table |
||
75 | * @param array $items |
||
76 | */ |
||
77 | protected function outputFormatTableLibrary(array $items) |
||
99 | |||
100 | } |
||
101 |