From 2f7f1946f26f32942b4f02934fa8395426ad8987 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Nov 2015 21:57:18 +0100 Subject: [PATCH] Init --- Admin/Installer.php | 43 ++++++++++++++++++ Controller.php | 80 ++++++++++++++++++++++++++++++++++ README.md | 0 Theme/lang/backend.en.lang.php | 33 ++++++++++++++ info.json | 25 +++++++++++ 5 files changed, 181 insertions(+) create mode 100644 Admin/Installer.php create mode 100644 Controller.php create mode 100644 README.md create mode 100644 Theme/lang/backend.en.lang.php create mode 100644 info.json diff --git a/Admin/Installer.php b/Admin/Installer.php new file mode 100644 index 0000000..f38d2f3 --- /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\Contact\Admin; + +use phpOMS\DataStorage\Database\DatabaseType; +use phpOMS\DataStorage\Database\Pool; +use phpOMS\Module\InstallerAbstract; + +/** + * Accounts payable install class. + * + * @category Modules + * @package Modules\AccountsPayable + * @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/Controller.php b/Controller.php new file mode 100644 index 0000000..04c82ed --- /dev/null +++ b/Controller.php @@ -0,0 +1,80 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Contact; + +use phpOMS\Message\RequestDestination; +use phpOMS\Module\ModuleAbstract; +use phpOMS\Module\WebInterface; + +/** + * Sales class. + * + * @category Modules + * @package Modules\Accountsreceivable + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Controller extends ModuleAbstract implements WebInterface +{ + + /** + * Module name. + * + * @var \string + * @since 1.0.0 + */ + protected static $module = 'Contact'; + + /** + * Localization files. + * + * @var \string + * @since 1.0.0 + */ + protected static $localization = [ + RequestDestination::BACKEND => ['backend'], + ]; + + /** + * Routing elements. + * + * @var array + * @since 1.0.0 + */ + protected static $routes = [ + ]; + + /** + * Providing. + * + * @var \string + * @since 1.0.0 + */ + protected static $providing = [ + ]; + + /** + * Dependencies. + * + * @var \string + * @since 1.0.0 + */ + protected static $dependencies = [ + ]; +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/Theme/lang/backend.en.lang.php b/Theme/lang/backend.en.lang.php new file mode 100644 index 0000000..88301c6 --- /dev/null +++ b/Theme/lang/backend.en.lang.php @@ -0,0 +1,33 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Contact'] = [ + 'Addresses' => 'Addresses', + 'Address' => 'Address', + 'City' => 'City', + 'Contact' => 'Contact', + 'Contacts' => 'Contacts', + 'Country' => 'Country', + 'Email' => 'Email', + 'FAO' => 'FAO', + 'Fax' => 'Fax', + 'Name' => 'Name', + 'Office' => 'Office', + 'Phone' => 'Phone', + 'Private' => 'Private', + 'Province' => 'Province', + 'State' => 'State', + 'Zip' => 'Zip', +]; diff --git a/info.json b/info.json new file mode 100644 index 0000000..224f856 --- /dev/null +++ b/info.json @@ -0,0 +1,25 @@ +{ + "name": { + "id": 1003800000, + "internal": "Contact", + "external": "OMS Contact" + }, + "version": "1.0.0", + "requirements": { + "phpOMS": "1.0.0", + "phpOMS-db": "1.0.0" + }, + "creator": { + "name": "Orange Management", + "website": "www.spl1nes.com" + }, + "description": "Contact module.", + "directory": "Contact", + "dependencies": { + "PaymentInformation": "*" + }, + "providing": { + }, + "load": [ + ] +}