1 | <?php |
||
18 | class OmnipayLibrary |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Library class instance |
||
23 | * @var \gplcart\core\Library $library |
||
24 | */ |
||
25 | protected $library; |
||
26 | |||
27 | /** |
||
28 | * Language model instance |
||
29 | * @var \gplcart\core\models\Language $language |
||
30 | */ |
||
31 | protected $language; |
||
32 | |||
33 | /** |
||
34 | * Constructor |
||
35 | * @param Library $library |
||
36 | * @param LanguageModel $language |
||
37 | */ |
||
38 | public function __construct(Library $library, LanguageModel $language) |
||
43 | |||
44 | /** |
||
45 | * Module info |
||
46 | * @return array |
||
47 | */ |
||
48 | public function info() |
||
58 | |||
59 | /** |
||
60 | * Implements hook "library.config" |
||
61 | * @param array $configs |
||
62 | */ |
||
63 | public function hookLibraryConfig(array &$configs) |
||
78 | |||
79 | /** |
||
80 | * Retuns registered namespaces from composer's autoload file |
||
81 | * @return array |
||
82 | */ |
||
83 | protected function getGatewayNamespaces() |
||
92 | |||
93 | /** |
||
94 | * Returns an array of gateways extracted from registered namespaces |
||
95 | * @return array |
||
96 | */ |
||
97 | public function getGatewayIds() |
||
115 | |||
116 | /** |
||
117 | * Returns an array of registered gateway instances |
||
118 | * @return null|object|array |
||
119 | */ |
||
120 | public function getGatewayInstance($gateway = null) |
||
142 | |||
143 | /** |
||
144 | * Implements hook "module.enable.after" |
||
145 | */ |
||
146 | public function hookModuleEnableAfter() |
||
150 | |||
151 | /** |
||
152 | * Implements hook "module.disable.after" |
||
153 | */ |
||
154 | public function hookModuleDisableAfter() |
||
158 | |||
159 | /** |
||
160 | * Implements hook "module.install.after" |
||
161 | */ |
||
162 | public function hookModuleInstallAfter() |
||
166 | |||
167 | /** |
||
168 | * Implements hook "module.uninstall.after" |
||
169 | */ |
||
170 | public function hookModuleUninstallAfter() |
||
174 | |||
175 | } |
||
176 |