Create draft shop nav install

This commit is contained in:
Dennis Eichhorn 2019-06-06 21:46:01 +02:00
parent 6a03db2ffc
commit 61e2214c74
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,21 @@
[
{
"id": 1007701001,
"pid": "/",
"type": 2,
"subtype": 0,
"name": "Shop",
"uri": null,
"target": "self",
"icon": "fa fa-wrench",
"order": 15,
"from": "Shop",
"permission": {
"permission": 2,
"type": null,
"element": null
},
"parent": 0,
"children": []
}
]

View File

@ -0,0 +1,43 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Modules\Shop\Admin\Install
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Modules\Shop\Admin\Install;
use phpOMS\DataStorage\Database\DatabasePool;
/**
* Navigation class.
*
* @package Modules\Shop\Admin\Install
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
class Navigation
{
/**
* Install navigation providing
*
* @param string $path Module path
* @param DatabasePool $dbPool Database pool for database interaction
*
* @return void
*
* @since 1.0.0
*/
public static function install(string $path, DatabasePool $dbPool) : void
{
\Modules\Navigation\Admin\Installer::installExternal($dbPool, ['path' => __DIR__ . '/Navigation.install.json']);
}
}