commit 837709c3f8daa1352504cfa200db36e7d122a9dc Author: Dennis Eichhorn Date: Sun Nov 29 21:57:18 2015 +0100 Init diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php new file mode 100644 index 0000000..bdb6ebc --- /dev/null +++ b/Admin/Install/Navigation.php @@ -0,0 +1,38 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\BusinessExpenses\Admin\Install; + +/** + * Navigation class. + * + * @category Modules + * @package Modules\Admin + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Navigation +{ + public static function install($dbPool) + { + $navData = json_decode(file_get_contents(__DIR__ . '/nav.install.json'), true); + + $class = '\\Modules\\Navigation\\Admin\\Installer'; + $class::installExternal($dbPool, $navData); + } +} diff --git a/Admin/Install/nav.install.json b/Admin/Install/nav.install.json new file mode 100644 index 0000000..3e1cabe --- /dev/null +++ b/Admin/Install/nav.install.json @@ -0,0 +1,34 @@ +[ + { + "id": 1001001001, + "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", + "type": 2, + "subtype": 1, + "name": "BusinessExpenses", + "uri": "", + "target": "self", + "icon": null, + "order": 40, + "from": 1001000000, + "permission": null, + "parent": 1002401001, + "children": [ + { + "id": 1001002001, + "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", + "type": 2, + "subtype": 1, + "name": "List", + "uri": "", + "target": "self", + "icon": null, + "order": 40, + "from": 1001000000, + "permission": null, + "parent": 1001001001, + "children": [ + ] + } + ] + } +] diff --git a/Admin/Installer.php b/Admin/Installer.php new file mode 100644 index 0000000..9bf1ebc --- /dev/null +++ b/Admin/Installer.php @@ -0,0 +1,43 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\BusinessExpenses\Admin; + +use phpOMS\DataStorage\Database\DatabaseType; +use phpOMS\DataStorage\Database\Pool; +use phpOMS\Module\InstallerAbstract; + +/** + * Navigation class. + * + * @category Modules + * @package Framework + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Installer extends InstallerAbstract +{ + + /** + * {@inheritdoc} + */ + public static function install(Pool $dbPool, array $info) + { + parent::install($dbPool, $info); + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/Theme/lang/nav.backend.en.lang.php b/Theme/lang/nav.backend.en.lang.php new file mode 100644 index 0000000..a2fa112 --- /dev/null +++ b/Theme/lang/nav.backend.en.lang.php @@ -0,0 +1,17 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Navigation'] = [ +]; diff --git a/info.json b/info.json new file mode 100644 index 0000000..4d2a8a0 --- /dev/null +++ b/info.json @@ -0,0 +1,42 @@ +{ + "name": { + "id": 1001000000, + "internal": "BusinessExpenses", + "external": "OMS Accounts Receivable" + }, + "version": "1.0.0", + "requirements": { + "phpOMS": "1.0.0", + "phpOMS-db": "1.0.0" + }, + "creator": { + "name": "Orange Management", + "website": "www.spl1nes.com" + }, + "description": "Accounting module.", + "directory": "BusinessExpenses", + "dependencies": {}, + "providing": { + "Navigation": "*" + }, + "load": [ + { + "pid": [ + "754a08ddf8bcb1cf22f310f09206dd783d42f7dd" + ], + "type": 5, + "from": "BusinessExpenses", + "for": "Navigation", + "file": "nav.backend" + }, + { + "pid": [ + "47e9d72449035cd040e0f93693fd0a925bf6e340" + ], + "type": 5, + "for": "Content", + "file": "backend", + "from": "BusinessExpenses" + } + ] +}