diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 1108e26..4019686 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package Modules\Admin\Install\Providing + * @package Modules\Admin\Admin\Install * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\DatabasePool; /** * Navigation class. * - * @package Modules\Admin\Install\Providing + * @package Modules\Admin\Admin\Install * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Admin/InstallType.php b/Admin/InstallType.php index a083cce..350c86b 100644 --- a/Admin/InstallType.php +++ b/Admin/InstallType.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -19,7 +19,7 @@ use phpOMS\Stdlib\Base\Enum; /** * Install type enum. * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Admin/Installer.php b/Admin/Installer.php index 3c66917..50133fb 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -22,7 +22,7 @@ use phpOMS\Module\InstallerAbstract; /** * Admin install class. * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 @@ -271,7 +271,17 @@ class Installer extends InstallerAbstract } } - public static function installExternal(DatabasePool $dbPool, array $data) + /** + * Provide group and permission install for other modules + * + * @param DatabasePool $dbPool Database pool + * @param array $data Data to install + * + * @return void + * + * @since 1.0.0 + */ + public static function installExternal(DatabasePool $dbPool, array $data) /* : void */ { foreach ($data as $type => $element) { if ($type === InstallType::PERMISSION) { @@ -282,7 +292,17 @@ class Installer extends InstallerAbstract } } - public static function installPermission(DatabasePool $dbPool, array $data) + /** + * Install permission + * + * @param DatabasePool $dbPool Database pool + * @param array $data Data to install + * + * @return void + * + * @since 1.0.0 + */ + public static function installPermission(DatabasePool $dbPool, array $data) /* : void */ { $sth = $dbPool->get()->con->prepare( 'INSERT INTO `' . $dbPool->get()->prefix . 'permission` (`permission_id`, `permission_name`, `permission_description`) VALUES @@ -300,7 +320,17 @@ class Installer extends InstallerAbstract $lastInsertID = $dbPool->get()->con->lastInsertId(); } - public static function installGroup(DatabasePool $dbPool, array $data) + /** + * Install group + * + * @param DatabasePool $dbPool Database pool + * @param array $data Data to install + * + * @return void + * + * @since 1.0.0 + */ + public static function installGroup(DatabasePool $dbPool, array $data) /* : void */ { $sth = $dbPool->get()->con->prepare( 'INSERT INTO `' . $dbPool->get()->prefix . 'group` (`group_id`, `group_name`, `group_description`) VALUES diff --git a/Admin/Status.php b/Admin/Status.php index 90f85e1..f737693 100644 --- a/Admin/Status.php +++ b/Admin/Status.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -21,7 +21,7 @@ use phpOMS\Module\InfoManager; /** * Activate class. * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Admin/Uninstaller.php b/Admin/Uninstaller.php index dc4b206..06ad27b 100644 --- a/Admin/Uninstaller.php +++ b/Admin/Uninstaller.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -21,7 +21,7 @@ use phpOMS\Module\InfoManager; /** * Uninstall class. * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Admin/Updater.php b/Admin/Updater.php index 4d46633..d84330c 100644 --- a/Admin/Updater.php +++ b/Admin/Updater.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -22,7 +22,7 @@ use phpOMS\System\File\Directory; /** * Update class. * - * @package Modules\Admin\Install + * @package Modules\Admin\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Controller.php b/Controller.php index eca4377..35591ec 100644 --- a/Controller.php +++ b/Controller.php @@ -44,7 +44,7 @@ use phpOMS\Views\View; * * This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules. * - * @package Modules + * @package Modules\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0