1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,25 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * eSales Media oxVoucher for Contao Open Source CMS |
|
5 |
+ * |
|
6 |
+ * Copyright (c) 2015 eSales Media |
|
7 |
+ * |
|
8 |
+ * @author Benjamin Roth [benjamin@esales-media.de] |
|
9 |
+ * @license proprietary |
|
10 |
+ */ |
|
11 |
+ |
|
12 |
+namespace eSM_oxVoucher; |
|
13 |
+ |
|
14 |
+class Voucher extends \Controller |
|
15 |
+{ |
|
16 |
+ |
|
17 |
+ /** |
|
18 |
+ * Import Oxid database instance |
|
19 |
+ * @return \Database |
|
20 |
+ */ |
|
21 |
+ public static function getOxDbInstance() |
|
22 |
+ { |
|
23 |
+ return \Database::getInstance($GLOBALS['oxvoucher']['db_config']); |
|
24 |
+ } |
|
25 |
+} |
|
0 | 26 |
\ No newline at end of file |