This commit is contained in:
Dennis Eichhorn 2015-11-29 21:57:18 +01:00
commit cf23d207e0
6 changed files with 266 additions and 0 deletions

View File

@ -0,0 +1,38 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace Modules\MyPrivate\Admin\Install;
/**
* Navigation class.
*
* @category Modules
* @package Modules\Admin
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @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);
}
}

View File

@ -0,0 +1,18 @@
[
{
"id": 1003401001,
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
"type": 2,
"subtype": 0,
"name": "Private",
"uri": null,
"target": "self",
"icon": "fa fa-lock",
"order": 15,
"from": "MyPrivate",
"permission": null,
"parent": 0,
"children": [
]
}
]

49
Admin/Installer.php Normal file
View File

@ -0,0 +1,49 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace Modules\MyPrivate\Admin;
use phpOMS\DataStorage\Database\DatabaseType;
use phpOMS\DataStorage\Database\Pool;
use phpOMS\Module\InstallerAbstract;
/**
* Tasks install class.
*
* @category Modules
* @package Modules\Tasks
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @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);
switch ($dbPool->get('core')->getType()) {
case DatabaseType::MYSQL:
break;
}
}
}

110
Controller.php Normal file
View File

@ -0,0 +1,110 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace Modules\MyPrivate;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Module\ModuleAbstract;
use phpOMS\Module\WebInterface;
/**
* Navigation class.
*
* @category Modules
* @package Modules\Navigation
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class Controller extends ModuleAbstract implements WebInterface
{
/**
* JavaScript files.
*
* @var \string[]
* @since 1.0.0
*/
public static $js = [
'backend',
];
/**
* CSS files.
*
* @var \string[]
* @since 1.0.0
*/
public static $css = [
];
/**
* Module name.
*
* @var \string
* @since 1.0.0
*/
protected static $module = 'MyPrivate';
/**
* Localization files.
*
* @var \string
* @since 1.0.0
*/
protected static $localization = [
];
/**
* Providing.
*
* @var \string[]
* @since 1.0.0
*/
protected static $providing = [
];
/**
* Dependencies.
*
* @var \string[]
* @since 1.0.0
*/
protected static $dependencies = [
];
/**
* Constructor.
*
* @param \Web\WebApplication $app Application
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function __construct($app)
{
parent::__construct($app);
}
/**
* {@inheritdoc}
*/
public function call(RequestAbstract $request, ResponseAbstract $response, $data = null)
{
}
}

View File

@ -0,0 +1,18 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
$MODLANG['Navigation'] = [
'Private' => 'Private',
];

33
info.json Normal file
View File

@ -0,0 +1,33 @@
{
"name": {
"id": 1003400000,
"internal": "MyPrivate",
"external": "OMS Tasks"
},
"version": "1.0.0",
"requirements": {
"phpOMS": "1.0.0",
"phpOMS-db": "1.0.0"
},
"creator": {
"name": "Orange Management",
"website": "www.spl1nes.com"
},
"description": "Tasks module.",
"directory": "MyPrivate",
"dependencies": {},
"providing": {
"Navigation": "*"
},
"load": [
{
"pid": [
"754a08ddf8bcb1cf22f310f09206dd783d42f7dd"
],
"type": 5,
"from": "MyPrivate",
"for": "Navigation",
"file": "nav.backend"
}
]
}