1 | <?php |
||
17 | class OmnipayLibrary |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Library class instance |
||
22 | * @var \gplcart\core\Library $library |
||
23 | */ |
||
24 | protected $library; |
||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * @param Library $library |
||
29 | */ |
||
30 | public function __construct(Library $library) |
||
34 | |||
35 | /** |
||
36 | * Module info |
||
37 | * @return array |
||
38 | */ |
||
39 | public function info() |
||
49 | |||
50 | /** |
||
51 | * Implements hook "library.list" |
||
52 | * @param array $libraries |
||
53 | */ |
||
54 | public function hookLibraryList(array &$libraries) |
||
69 | |||
70 | /** |
||
71 | * Retuns registered namespaces from composer's autoload file |
||
72 | * @return array |
||
73 | */ |
||
74 | protected function getGatewayNamespaces() |
||
85 | |||
86 | /** |
||
87 | * Returns an array of gateways extracted from registered namespaces |
||
88 | * @return array |
||
89 | */ |
||
90 | public function getGatewayIds() |
||
108 | |||
109 | /** |
||
110 | * Returns an array of registered gateway instances |
||
111 | * @return null|object|array |
||
112 | */ |
||
113 | public function getGatewayInstance($gateway = null) |
||
135 | |||
136 | /** |
||
137 | * Implements hook "module.enable.after" |
||
138 | */ |
||
139 | public function hookModuleEnableAfter() |
||
143 | |||
144 | /** |
||
145 | * Implements hook "module.disable.after" |
||
146 | */ |
||
147 | public function hookModuleDisableAfter() |
||
151 | |||
152 | /** |
||
153 | * Implements hook "module.install.after" |
||
154 | */ |
||
155 | public function hookModuleInstallAfter() |
||
159 | |||
160 | /** |
||
161 | * Implements hook "module.uninstall.after" |
||
162 | */ |
||
163 | public function hookModuleUninstallAfter() |
||
167 | |||
168 | } |
||
169 |