diff --git a/Admin/Activate.php b/Admin/Activate.php index f4f631e..772d148 100644 --- a/Admin/Activate.php +++ b/Admin/Activate.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Install * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -18,9 +18,9 @@ use phpOMS\Module\ActivateAbstract; use phpOMS\Module\InfoManager; /** - * Navigation class. + * Activate class. * - * @package Modules + * @package Modules\Admin\Install * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Admin/Deactivate.php b/Admin/Deactivate.php index 09c57e0..ea9b456 100644 --- a/Admin/Deactivate.php +++ b/Admin/Deactivate.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Install * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -18,9 +18,9 @@ use phpOMS\Module\DeactivateAbstract; use phpOMS\Module\InfoManager; /** - * Navigation class. + * Deactivate class. * - * @package Modules + * @package Modules\Admin\Install * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 48c3397..91da412 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Install\Providing * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -17,18 +17,28 @@ use phpOMS\DataStorage\Database\DatabasePool; /** * Navigation class. * - * @package Modules + * @package Modules\Admin\Install\Providing * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 */ class Navigation { - public static function install(string $path, DatabasePool $dbPool) + /** + * Install navigation providing + * + * @param string $path Path to some file + * @param DatabasePool $dbPool Database pool for database interaction + * + * @return void + * + * @since 1.0.0 + */ + public static function install(string $path = null, DatabasePool $dbPool = null) /* : void */ { $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true); - $class = '\\Modules\\Navigation\\Admin\\Installer'; + /** @var $class \Modules\Navigation\Admin\Installer */ $class::installExternal($dbPool, $navData); } diff --git a/Admin/InstallType.php b/Admin/InstallType.php index f1fdc00..a20f12d 100644 --- a/Admin/InstallType.php +++ b/Admin/InstallType.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Install * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -17,9 +17,9 @@ namespace Modules\Admin\Admin; use phpOMS\Stdlib\Base\Enum; /** - * Tag type enum. + * Install type enum. * - * @package Framework + * @package Modules\Admin\Install * @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 223573b..3e282c4 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Install * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -21,7 +21,7 @@ use phpOMS\Module\InstallerAbstract; /** * Admin install class. * - * @package Modules + * @package Modules\Admin\Install * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index 6f70a3a..3525601 100644 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -3,7 +3,6 @@ use phpOMS\Router\RouteVerb; return [ - '^.*/api/admin/settings.*$' => [ [ 'dest' => '\Modules\Admin\Controller:apiSettingsSet', diff --git a/Admin/Routes/console.php b/Admin/Routes/console.php index 1ecbfac..a1b26e6 100644 --- a/Admin/Routes/console.php +++ b/Admin/Routes/console.php @@ -1,3 +1,2 @@ app->appSettings->get([ - 1000000009, - 1000000019, - 1000000020, - 1000000021, - 1000000022, - 1000000023, - 1000000027, - 1000000028, - ]); + $settings = $this->app->appSettings->get([1000000009, 1000000019, 1000000020, 1000000021, 1000000022, 1000000023, 1000000027, 1000000028,]); $view->setTemplate('/Modules/Admin/Theme/Backend/settings-general'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000104001, $request, $response)); - $view->setData('oname', $settings[1000000009]); $view->setData('country', $settings[1000000019]); $view->setData('timezone', $settings[1000000021]); @@ -148,11 +144,13 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method which generates the account list view. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -171,7 +169,6 @@ class Controller extends ModuleAbstract implements WebInterface $view->setTemplate('/Modules/Admin/Theme/Backend/accounts-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000104001, $request, $response)); - $view->setData('list:elements', AccountMapper::getNewest(50)); $view->setData('list:count', 1); @@ -179,11 +176,13 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method which generates the account view of a single account. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -202,7 +201,6 @@ class Controller extends ModuleAbstract implements WebInterface $view->setTemplate('/Modules/Admin/Theme/Backend/accounts-single'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000104001, $request, $response)); - $view->addData('account', AccountMapper::get((int) $request->getData('id'))); $permissions = AccountPermissionMapper::getFor((int) $request->getData('id'), 'account'); @@ -219,11 +217,13 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method which generates the create account view. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -247,11 +247,13 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method which generates the group list view. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -270,18 +272,19 @@ class Controller extends ModuleAbstract implements WebInterface $view->setTemplate('/Modules/Admin/Theme/Backend/groups-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000103001, $request, $response)); - $view->setData('list:elements', GroupMapper::getAll()); return $view; } /** + * Method which generates the group view of a single group. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -300,7 +303,6 @@ class Controller extends ModuleAbstract implements WebInterface $view->setTemplate('/Modules/Admin/Theme/Backend/groups-single'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000103001, $request, $response)); - $view->addData('group', GroupMapper::get((int) $request->getData('id'))); $permissions = GroupPermissionMapper::getFor((int) $request->getData('id'), 'group'); @@ -317,11 +319,13 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method which generates the group create view. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -345,11 +349,13 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method which generates the module list view. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -372,11 +378,13 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method which generates the module profile view. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * - * @return \Serializable + * @return \Serializable Serializable web view * * @since 1.0.0 * @codeCoverageIgnore @@ -399,6 +407,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method for getting settings + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -421,6 +431,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method for modifying settings + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -448,6 +460,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method for getting a group + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -471,6 +485,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method for modifying a group + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -501,6 +517,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Validate group create request + * * @param RequestAbstract $request Request * * @return array @@ -524,6 +542,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to create a group + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -555,6 +575,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method to create group from request. + * * @param RequestAbstract $request Request * * @return Group @@ -574,6 +596,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to delete a group + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -599,6 +623,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to get an accoung + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -622,6 +648,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to find accounts + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -645,6 +673,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method to validate account creation from request + * * @param RequestAbstract $request Request * * @return array @@ -668,6 +698,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to create an account + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -699,6 +731,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Method to create an account from a request + * * @param RequestAbstract $request Request * * @return Account @@ -721,6 +755,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to delete an account + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -746,6 +782,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to update an account + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data @@ -779,6 +817,8 @@ class Controller extends ModuleAbstract implements WebInterface } /** + * Api method to update the module settigns + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data diff --git a/Models/Account.php b/Models/Account.php index bff4a05..66445bd 100644 --- a/Models/Account.php +++ b/Models/Account.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -16,7 +16,7 @@ namespace Modules\Admin\Models; /** * Account class. * - * @package Modules + * @package Modules\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Models/AccountMapper.php b/Models/AccountMapper.php index e41ce01..a93fbf4 100644 --- a/Models/AccountMapper.php +++ b/Models/AccountMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -14,13 +14,20 @@ declare(strict_types = 1); namespace Modules\Admin\Models; use Modules\Media\Models\MediaMapper; + use phpOMS\DataStorage\Database\DataMapperAbstract; use phpOMS\DataStorage\Database\Query\Builder; -use phpOMS\DataStorage\Database\Query\Column; -use phpOMS\DataStorage\Database\RelationType; use phpOMS\DataStorage\Database\DatabaseType; use phpOMS\Auth\LoginReturnType; +/** + * Account mapper class. + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class AccountMapper extends DataMapperAbstract { /** @@ -33,15 +40,14 @@ class AccountMapper extends DataMapperAbstract 'account_id' => ['name' => 'account_id', 'type' => 'int', 'internal' => 'id', 'autocomplete' => true], 'account_status' => ['name' => 'account_status', 'type' => 'int', 'internal' => 'status'], 'account_type' => ['name' => 'account_type', 'type' => 'int', 'internal' => 'type'], - 'account_login' => ['name' => 'account_login', 'type' => 'string', 'internal' => 'login', 'autocomplete' => true], + 'account_login' => ['name' => 'account_login', 'type' => 'string', 'internal' => 'login', 'autocomplete' => true], 'account_name1' => ['name' => 'account_name1', 'type' => 'string', 'internal' => 'name1', 'autocomplete' => true], 'account_name2' => ['name' => 'account_name2', 'type' => 'string', 'internal' => 'name2', 'autocomplete' => true], 'account_name3' => ['name' => 'account_name3', 'type' => 'string', 'internal' => 'name3', 'autocomplete' => true], - 'account_password' => ['name' => 'account_password', 'type' => 'string', 'internal' => 'password'], + 'account_password' => ['name' => 'account_password', 'type' => 'string', 'internal' => 'password'], 'account_email' => ['name' => 'account_email', 'type' => 'string', 'internal' => 'email', 'autocomplete' => true], //'account_tries' => ['name' => 'account_tries', 'type' => 'int', 'internal' => 'tries'], - 'account_lactive' => ['name' => 'account_lactive', 'type' => 'DateTime', - 'internal' => 'lastActive'], + 'account_lactive' => ['name' => 'account_lactive', 'type' => 'DateTime', 'internal' => 'lastActive'], 'account_created_at' => ['name' => 'account_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], ]; diff --git a/Models/AccountPermission.php b/Models/AccountPermission.php index 1c520b1..c430b51 100644 --- a/Models/AccountPermission.php +++ b/Models/AccountPermission.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -16,19 +16,32 @@ namespace Modules\Admin\Models; use phpOMS\Account\PermissionAbstract; /** - * InfoManager class. + * Account permission class. * - * Handling the info files for modules + * A single permission for an account consisting of read, create, modify, delete and permission flags. * - * @package Framework + * @package Modules\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 */ class AccountPermission extends PermissionAbstract { + /** + * Account id + * + * @var int + * @since 1.0.0 + */ private $account = 0; + /** + * Get account id + * + * @return int + * + * @since 1.0.0 + */ public function getAccount() : int { return $this->account; diff --git a/Models/AccountPermissionMapper.php b/Models/AccountPermissionMapper.php index 0215192..c737fd5 100644 --- a/Models/AccountPermissionMapper.php +++ b/Models/AccountPermissionMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -14,8 +14,15 @@ declare(strict_types = 1); namespace Modules\Admin\Models; use phpOMS\DataStorage\Database\DataMapperAbstract; -use phpOMS\DataStorage\Database\RelationType; +/** + * Account permission mapper class. + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class AccountPermissionMapper extends DataMapperAbstract { @@ -26,16 +33,16 @@ class AccountPermissionMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $columns = [ - 'account_permission_id' => ['name' => 'account_permission_id', 'type' => 'int', 'internal' => 'id'], - 'account_permission_account' => ['name' => 'account_permission_account', 'type' => 'int', 'internal' => 'account'], - 'account_permission_unit' => ['name' => 'account_permission_unit', 'type' => 'int', 'internal' => 'unit'], - 'account_permission_app' => ['name' => 'account_permission_app', 'type' => 'int', 'internal' => 'app'], - 'account_permission_module' => ['name' => 'account_permission_module', 'type' => 'int', 'internal' => 'module'], - 'account_permission_from' => ['name' => 'account_permission_from', 'type' => 'int', 'internal' => 'from'], - 'account_permission_type' => ['name' => 'account_permission_type', 'type' => 'int', 'internal' => 'type'], - 'account_permission_element' => ['name' => 'account_permission_element', 'type' => 'int', 'internal' => 'element'], - 'account_permission_component' => ['name' => 'account_permission_component', 'type' => 'int', 'internal' => 'component'], - 'account_permission_permission' => ['name' => 'account_permission_permission', 'type' => 'int', 'internal' => 'permission'], + 'account_permission_id' => ['name' => 'account_permission_id', 'type' => 'int', 'internal' => 'id'], + 'account_permission_account' => ['name' => 'account_permission_account', 'type' => 'int', 'internal' => 'account'], + 'account_permission_unit' => ['name' => 'account_permission_unit', 'type' => 'int', 'internal' => 'unit'], + 'account_permission_app' => ['name' => 'account_permission_app', 'type' => 'int', 'internal' => 'app'], + 'account_permission_module' => ['name' => 'account_permission_module', 'type' => 'int', 'internal' => 'module'], + 'account_permission_from' => ['name' => 'account_permission_from', 'type' => 'int', 'internal' => 'from'], + 'account_permission_type' => ['name' => 'account_permission_type', 'type' => 'int', 'internal' => 'type'], + 'account_permission_element' => ['name' => 'account_permission_element', 'type' => 'int', 'internal' => 'element'], + 'account_permission_component' => ['name' => 'account_permission_component', 'type' => 'int', 'internal' => 'component'], + 'account_permission_permission' => ['name' => 'account_permission_permission', 'type' => 'int', 'internal' => 'permission'], ]; /** diff --git a/Models/Group.php b/Models/Group.php index f479114..d537ec0 100644 --- a/Models/Group.php +++ b/Models/Group.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -16,7 +16,7 @@ namespace Modules\Admin\Models; /** * Account group class. * - * @package Framework + * @package Modules\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 @@ -39,6 +39,12 @@ class Group extends \phpOMS\Account\Group */ protected $createdBy = 0; + /** + * Group raw description. + * + * @var string + * @since 1.0.0 + */ protected $descriptionRaw = ''; /** @@ -77,16 +83,41 @@ class Group extends \phpOMS\Account\Group return $this->createdBy; } + /** + * Set created by + * + * @param mixed $createdBy Group created by + * + * @return void + * + * @since 1.0.0 + */ public function setCreatedBy($createdBy) /* : void */ { $this->createdBy = $createdBy; } + /** + * Set raw description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ public function setDescriptionRaw(string $description) /* : void */ { $this->descriptionRaw = $description; } + /** + * Get raw description + * + * @return string Raw description + * + * @since 1.0.0 + */ public function getDescriptionRaw() : string { return $this->descriptionRaw; diff --git a/Models/GroupMapper.php b/Models/GroupMapper.php index 891ee40..8024ca5 100644 --- a/Models/GroupMapper.php +++ b/Models/GroupMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -14,8 +14,15 @@ declare(strict_types = 1); namespace Modules\Admin\Models; use phpOMS\DataStorage\Database\DataMapperAbstract; -use phpOMS\DataStorage\Database\RelationType; +/** + * Group mapper class. + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class GroupMapper extends DataMapperAbstract { @@ -26,12 +33,12 @@ class GroupMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $columns = [ - 'group_id' => ['name' => 'group_id', 'type' => 'int', 'internal' => 'id'], - 'group_name' => ['name' => 'group_name', 'type' => 'string', 'internal' => 'name'], - 'group_status' => ['name' => 'group_status', 'type' => 'int', 'internal' => 'status'], - 'group_desc' => ['name' => 'group_desc', 'type' => 'string', 'internal' => 'description'], - 'group_desc_raw' => ['name' => 'group_desc_raw', 'type' => 'string', 'internal' => 'descriptionRaw'], - 'group_created' => ['name' => 'group_created', 'type' => 'DateTime', 'internal' => 'createdAt'], + 'group_id' => ['name' => 'group_id', 'type' => 'int', 'internal' => 'id'], + 'group_name' => ['name' => 'group_name', 'type' => 'string', 'internal' => 'name'], + 'group_status' => ['name' => 'group_status', 'type' => 'int', 'internal' => 'status'], + 'group_desc' => ['name' => 'group_desc', 'type' => 'string', 'internal' => 'description'], + 'group_desc_raw' => ['name' => 'group_desc_raw', 'type' => 'string', 'internal' => 'descriptionRaw'], + 'group_created' => ['name' => 'group_created', 'type' => 'DateTime', 'internal' => 'createdAt'], ]; /** diff --git a/Models/GroupPermission.php b/Models/GroupPermission.php index 91eef01..c7fb816 100644 --- a/Models/GroupPermission.php +++ b/Models/GroupPermission.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -16,19 +16,32 @@ namespace Modules\Admin\Models; use phpOMS\Account\PermissionAbstract; /** - * InfoManager class. + * Group permission class. * - * Handling the info files for modules + * A single permission for a group consisting of read, create, modify, delete and permission flags. * - * @package Framework + * @package Modules\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 */ class GroupPermission extends PermissionAbstract { + /** + * Group id + * + * @var int + * @since 1.0.0 + */ private $group = 0; + /** + * Get group id + * + * @return int + * + * @since 1.0.0 + */ public function getGroup() : int { return $this->group; diff --git a/Models/GroupPermissionMapper.php b/Models/GroupPermissionMapper.php index 81e3c74..62793d1 100644 --- a/Models/GroupPermissionMapper.php +++ b/Models/GroupPermissionMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -14,8 +14,15 @@ declare(strict_types = 1); namespace Modules\Admin\Models; use phpOMS\DataStorage\Database\DataMapperAbstract; -use phpOMS\DataStorage\Database\RelationType; +/** + * Group permission mapper class. + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class GroupPermissionMapper extends DataMapperAbstract { @@ -26,16 +33,16 @@ class GroupPermissionMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $columns = [ - 'group_permission_id' => ['name' => 'group_permission_id', 'type' => 'int', 'internal' => 'id'], + 'group_permission_id' => ['name' => 'group_permission_id', 'type' => 'int', 'internal' => 'id'], 'group_permission_group' => ['name' => 'group_permission_group', 'type' => 'int', 'internal' => 'group'], - 'group_permission_unit' => ['name' => 'group_permission_unit', 'type' => 'int', 'internal' => 'unit'], - 'group_permission_app' => ['name' => 'group_permission_app', 'type' => 'string', 'internal' => 'app'], - 'group_permission_module' => ['name' => 'group_permission_module', 'type' => 'int', 'internal' => 'module'], - 'group_permission_from' => ['name' => 'group_permission_from', 'type' => 'int', 'internal' => 'from'], - 'group_permission_type' => ['name' => 'group_permission_type', 'type' => 'int', 'internal' => 'type'], - 'group_permission_element' => ['name' => 'group_permission_element', 'type' => 'int', 'internal' => 'element'], - 'group_permission_component' => ['name' => 'group_permission_component', 'type' => 'int', 'internal' => 'component'], - 'group_permission_permission' => ['name' => 'group_permission_permission', 'type' => 'int', 'internal' => 'permission'], + 'group_permission_unit' => ['name' => 'group_permission_unit', 'type' => 'int', 'internal' => 'unit'], + 'group_permission_app' => ['name' => 'group_permission_app', 'type' => 'string', 'internal' => 'app'], + 'group_permission_module' => ['name' => 'group_permission_module', 'type' => 'int', 'internal' => 'module'], + 'group_permission_from' => ['name' => 'group_permission_from', 'type' => 'int', 'internal' => 'from'], + 'group_permission_type' => ['name' => 'group_permission_type', 'type' => 'int', 'internal' => 'type'], + 'group_permission_element' => ['name' => 'group_permission_element', 'type' => 'int', 'internal' => 'element'], + 'group_permission_component' => ['name' => 'group_permission_component', 'type' => 'int', 'internal' => 'component'], + 'group_permission_permission' => ['name' => 'group_permission_permission', 'type' => 'int', 'internal' => 'permission'], ]; /** diff --git a/Models/Module.php b/Models/Module.php index dd6d408..1c7786e 100644 --- a/Models/Module.php +++ b/Models/Module.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -16,9 +16,9 @@ namespace Modules\Admin\Models; use phpOMS\Module\ModuleStatus; /** - * Account group class. + * Module class. * - * @package Framework + * @package Modules\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 @@ -198,7 +198,11 @@ class Module } /** - * {@inheritdoc} + * To array + * + * @return array + * + * @since 1.0.0 */ public function toArray() : array { diff --git a/Models/ModuleMapper.php b/Models/ModuleMapper.php index 58eba71..7f21361 100644 --- a/Models/ModuleMapper.php +++ b/Models/ModuleMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -14,8 +14,15 @@ declare(strict_types = 1); namespace Modules\Admin\Models; use phpOMS\DataStorage\Database\DataMapperAbstract; -use phpOMS\DataStorage\Database\RelationType; +/** + * Module mapper class. + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class ModuleMapper extends DataMapperAbstract { @@ -26,8 +33,8 @@ class ModuleMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $columns = [ - 'module_id' => ['name' => 'module_id', 'type' => 'string', 'internal' => 'id'], - 'module_active' => ['name' => 'module_active', 'type' => 'int', 'internal' => 'status'], + 'module_id' => ['name' => 'module_id', 'type' => 'string', 'internal' => 'id'], + 'module_active' => ['name' => 'module_active', 'type' => 'int', 'internal' => 'status'], ]; /** diff --git a/Models/NullAccount.php b/Models/NullAccount.php index 4f719b5..278d74b 100644 --- a/Models/NullAccount.php +++ b/Models/NullAccount.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -13,6 +13,14 @@ declare(strict_types = 1); namespace Modules\Admin\Models; +/** + * Null model + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class NullAccount extends Account { } diff --git a/Models/NullAccountPermission.php b/Models/NullAccountPermission.php index 38926d4..7dd0ccd 100644 --- a/Models/NullAccountPermission.php +++ b/Models/NullAccountPermission.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -13,6 +13,14 @@ declare(strict_types = 1); namespace Modules\Admin\Models; +/** + * Null model + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class NullAccountPermission extends AccountPermission { } diff --git a/Models/NullGroup.php b/Models/NullGroup.php index dc07788..11fd6d4 100644 --- a/Models/NullGroup.php +++ b/Models/NullGroup.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -13,6 +13,14 @@ declare(strict_types = 1); namespace Modules\Admin\Models; +/** + * Null model + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class NullGroup extends Group { } diff --git a/Models/NullGroupPermission.php b/Models/NullGroupPermission.php index 24ccbe7..30d9ee7 100644 --- a/Models/NullGroupPermission.php +++ b/Models/NullGroupPermission.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -13,6 +13,14 @@ declare(strict_types = 1); namespace Modules\Admin\Models; +/** + * Null model + * + * @package Modules\Admin + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class NullGroupPermission extends GroupPermission { } diff --git a/Models/PermissionState.php b/Models/PermissionState.php index f4dc991..604135a 100644 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -19,7 +19,7 @@ use phpOMS\Stdlib\Base\Enum; /** * Permision state enum. * - * @package Tasks + * @package Modules\Admin * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 42e48db..1591391 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -4,21 +4,23 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Language\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ -return ['Navigation' => [ - 'Admin' => 'Admin', - 'Create' => 'Create', - 'Front' => 'Front', - 'General' => 'General', - 'Groups' => 'Groups', - 'List' => 'List', - 'Members' => 'Members', - 'Modules' => 'Modules', - 'Account' => 'Account', - 'Accounts' => 'Accounts', -]]; +return [ + 'Navigation' => [ + 'Admin' => 'Admin', + 'Create' => 'Create', + 'Front' => 'Front', + 'General' => 'General', + 'Groups' => 'Groups', + 'List' => 'List', + 'Members' => 'Members', + 'Modules' => 'Modules', + 'Account' => 'Account', + 'Accounts' => 'Accounts', + ] +]; diff --git a/Theme/Backend/Lang/api.en.lang.php b/Theme/Backend/Lang/api.en.lang.php index ee0196d..905aef6 100644 --- a/Theme/Backend/Lang/api.en.lang.php +++ b/Theme/Backend/Lang/api.en.lang.php @@ -4,7 +4,7 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Language\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index a29005a..1bd37bc 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -4,136 +4,138 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Language\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ -return ['Admin' => [ - 'Account' => 'Account', - 'Account/Group' => 'Account/Group', - 'Accounts' => 'Accounts', - 'Active' => 'Active', - 'Activate' => 'Activate', - 'Activity' => 'Activity', - 'Available' => 'Available', - 'All' => 'All', - 'Area' => 'Area', - 'Banned' => 'Banned', - 'Cache' => 'Cache', - 'Children' => 'Children', - 'Close' => 'Close', - 'Country' => 'Country', - 'Created' => 'Created', - 'CreatedBy' => 'Created By', - 'Currency' => 'Currency', - 'DecimalPoint' => 'Decimal Point', - 'Description' => 'Description', - 'Delete' => 'Delete', - 'Deactivate' => 'Deactivate', - 'Email' => 'Email', - 'EmailAdmin' => 'Email Admin', - 'Fast' => 'Fast', - 'Features' => 'Features', - 'File' => 'File', - 'General' => 'General', - 'Glass' => 'Glass', - 'Group' => 'Group', - 'Groups' => 'Groups', - 'Heavy' => 'Heavy', - 'Inactive' => 'Inactive', - 'Install' => 'Install', - 'Installed' => 'Installed', - 'LAddress' => 'Local Address', - 'Language' => 'Language', - 'Large' => 'Large', - 'Length' => 'Length', - 'Light' => 'Light', - 'Localization' => 'Localization', - 'Long' => 'Long', - 'Loginname' => 'Login Name', - 'Lowercase' => 'Lowercase', - 'Maintenance' => 'Maintenance', - 'Medium' => 'Medium', - 'Member' => 'Member', - 'Members' => 'Members', - 'Memcache' => 'Memcache', - 'MemoryLimit' => 'Memory Limit', - 'Message' => 'Message', - 'Module' => 'Module', - 'Modules' => 'Modules', - 'Name' => 'Name', - 'Name1' => 'Name 1', - 'Name2' => 'Name 2', - 'Name3' => 'Name 3', - 'None' => 'None', - 'Numberformat' => 'Numberformat', - 'Numeric' => 'Numeric', - 'Organization' => 'Organization', - 'OrganizationName' => 'Organization Name', - 'Page' => 'Page', - 'Parent' => 'Parent', - 'Parents' => 'Parents', - 'Password' => 'Password', - 'PasswordRegex' => 'Password Regex', - 'Permissions' => 'Permissions', - 'Person' => 'Person', - 'Profile' => 'Profile', - 'RAddress' => 'Remote Address', - 'ReCache' => 'Re-Cache', - 'Running' => 'Running', - 'Short' => 'Short', - 'Sea' => 'Sea', - 'Settings' => 'Settings', - 'SettingsGeneral' => 'Settings - General', - 'Single' => 'Single', - 'Slow' => 'Slow', - 'Small' => 'Small', - 'Speed' => 'Speed', - 'Specialchar' => 'Special character', - 'Status' => 'Status', - 'Total' => 'Total', - 'Release' => 'Release', - 'Tablespoon' => 'Tablespoon', - 'Teaspoon' => 'Teaspoon', - 'Temperature' => 'Temperature', - 'Theme' => 'Theme', - 'ThousandsSeparator' => 'Thousands Separator', - 'Time' => 'Time', - 'Timestamp' => 'Timestamp', - 'Timeformat' => 'Timeformat', - 'Timeout' => 'Timeout', - 'Timezone' => 'Timezone', - 'Type' => 'Type', - 'Uninstall' => 'Uninstall', - 'Uppercase' => 'Uppercase', - 'Username' => 'Username', - 'Version' => 'Version', - 'VeryFast' => 'Very Fast', - 'VeryHeavy' => 'Very Heavy', - 'VeryLarge' => 'Very Large', - 'VeryLight' => 'Very Light', - 'VeryLong' => 'Very Long', - 'VerySlow' => 'Very Slow', - 'VeryShort' => 'Very Short', - 'VerySmall' => 'Very Small', - 'Volume' => 'Volume', - 'Warnings' => 'Warnings', - 'Website' => 'Website', - 'Weight' => 'Weight', - 'i:loc' => 'IP address or URL for remote access.', - 'i:mail' => 'Email address.', - 'i:oname' => 'Organization name.', - 'i:rem' => 'IP address or URL for remote access.', - 'i:rc' => 'Forcing re-cache for every user.', - 'i:timef' => 'Time format.', - 'Status0' => 'None', - 'Status1' => 'Active', - 'Status2' => 'Inactive', - 'Status3' => 'Timehout', - 'Status4' => 'Banned', - 'GroupStatus1' => 'Active', - 'GroupStatus2' => 'Inactive', - 'GroupStatus4' => 'Hidden', -]]; +return [ + 'Admin' => [ + 'Account' => 'Account', + 'Account/Group' => 'Account/Group', + 'Accounts' => 'Accounts', + 'Active' => 'Active', + 'Activate' => 'Activate', + 'Activity' => 'Activity', + 'Available' => 'Available', + 'All' => 'All', + 'Area' => 'Area', + 'Banned' => 'Banned', + 'Cache' => 'Cache', + 'Children' => 'Children', + 'Close' => 'Close', + 'Country' => 'Country', + 'Created' => 'Created', + 'CreatedBy' => 'Created By', + 'Currency' => 'Currency', + 'DecimalPoint' => 'Decimal Point', + 'Description' => 'Description', + 'Delete' => 'Delete', + 'Deactivate' => 'Deactivate', + 'Email' => 'Email', + 'EmailAdmin' => 'Email Admin', + 'Fast' => 'Fast', + 'Features' => 'Features', + 'File' => 'File', + 'General' => 'General', + 'Glass' => 'Glass', + 'Group' => 'Group', + 'Groups' => 'Groups', + 'Heavy' => 'Heavy', + 'Inactive' => 'Inactive', + 'Install' => 'Install', + 'Installed' => 'Installed', + 'LAddress' => 'Local Address', + 'Language' => 'Language', + 'Large' => 'Large', + 'Length' => 'Length', + 'Light' => 'Light', + 'Localization' => 'Localization', + 'Long' => 'Long', + 'Loginname' => 'Login Name', + 'Lowercase' => 'Lowercase', + 'Maintenance' => 'Maintenance', + 'Medium' => 'Medium', + 'Member' => 'Member', + 'Members' => 'Members', + 'Memcache' => 'Memcache', + 'MemoryLimit' => 'Memory Limit', + 'Message' => 'Message', + 'Module' => 'Module', + 'Modules' => 'Modules', + 'Name' => 'Name', + 'Name1' => 'Name 1', + 'Name2' => 'Name 2', + 'Name3' => 'Name 3', + 'None' => 'None', + 'Numberformat' => 'Numberformat', + 'Numeric' => 'Numeric', + 'Organization' => 'Organization', + 'OrganizationName' => 'Organization Name', + 'Page' => 'Page', + 'Parent' => 'Parent', + 'Parents' => 'Parents', + 'Password' => 'Password', + 'PasswordRegex' => 'Password Regex', + 'Permissions' => 'Permissions', + 'Person' => 'Person', + 'Profile' => 'Profile', + 'RAddress' => 'Remote Address', + 'ReCache' => 'Re-Cache', + 'Running' => 'Running', + 'Short' => 'Short', + 'Sea' => 'Sea', + 'Settings' => 'Settings', + 'SettingsGeneral' => 'Settings - General', + 'Single' => 'Single', + 'Slow' => 'Slow', + 'Small' => 'Small', + 'Speed' => 'Speed', + 'Specialchar' => 'Special character', + 'Status' => 'Status', + 'Total' => 'Total', + 'Release' => 'Release', + 'Tablespoon' => 'Tablespoon', + 'Teaspoon' => 'Teaspoon', + 'Temperature' => 'Temperature', + 'Theme' => 'Theme', + 'ThousandsSeparator' => 'Thousands Separator', + 'Time' => 'Time', + 'Timestamp' => 'Timestamp', + 'Timeformat' => 'Timeformat', + 'Timeout' => 'Timeout', + 'Timezone' => 'Timezone', + 'Type' => 'Type', + 'Uninstall' => 'Uninstall', + 'Uppercase' => 'Uppercase', + 'Username' => 'Username', + 'Version' => 'Version', + 'VeryFast' => 'Very Fast', + 'VeryHeavy' => 'Very Heavy', + 'VeryLarge' => 'Very Large', + 'VeryLight' => 'Very Light', + 'VeryLong' => 'Very Long', + 'VerySlow' => 'Very Slow', + 'VeryShort' => 'Very Short', + 'VerySmall' => 'Very Small', + 'Volume' => 'Volume', + 'Warnings' => 'Warnings', + 'Website' => 'Website', + 'Weight' => 'Weight', + 'i:loc' => 'IP address or URL for remote access.', + 'i:mail' => 'Email address.', + 'i:oname' => 'Organization name.', + 'i:rem' => 'IP address or URL for remote access.', + 'i:rc' => 'Forcing re-cache for every user.', + 'i:timef' => 'Time format.', + 'Status0' => 'None', + 'Status1' => 'Active', + 'Status2' => 'Inactive', + 'Status3' => 'Timehout', + 'Status4' => 'Banned', + 'GroupStatus1' => 'Active', + 'GroupStatus2' => 'Inactive', + 'GroupStatus4' => 'Hidden', + ] +]; diff --git a/Theme/Backend/accounts-create.tpl.php b/Theme/Backend/accounts-create.tpl.php index a9c613d..332f0c8 100644 --- a/Theme/Backend/accounts-create.tpl.php +++ b/Theme/Backend/accounts-create.tpl.php @@ -4,12 +4,16 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ + + /** + * @var \phpOMS\Views\View $this + */ echo $this->getData('nav')->render(); ?>
diff --git a/Theme/Backend/accounts-list.tpl.php b/Theme/Backend/accounts-list.tpl.php index befd9c0..1afecc7 100644 --- a/Theme/Backend/accounts-list.tpl.php +++ b/Theme/Backend/accounts-list.tpl.php @@ -4,26 +4,17 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ + /** * @var \phpOMS\Views\View $this */ - - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - -$footerView->setPages($this->getData('list:count') / 25); -$footerView->setPage(1); -$footerView->setResults($this->getData('list:count')); - -echo $this->getData('nav')->render(); -?> +echo $this->getData('nav')->render(); ?>
@@ -56,7 +47,7 @@ echo $this->getData('nav')->render(); getHtml('Empty', 0, 0); ?> - +
diff --git a/Theme/Backend/accounts-single.tpl.php b/Theme/Backend/accounts-single.tpl.php index 24161f1..3ef6a13 100644 --- a/Theme/Backend/accounts-single.tpl.php +++ b/Theme/Backend/accounts-single.tpl.php @@ -4,16 +4,16 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ -/* - * UI Logic - */ +/** + * @var \phpOMS\Views\View $this + */ $account = $this->getData('account'); $permissions = $this->getData('permissions'); diff --git a/Theme/Backend/groups-create.tpl.php b/Theme/Backend/groups-create.tpl.php index bca2d6d..a3e4d2d 100644 --- a/Theme/Backend/groups-create.tpl.php +++ b/Theme/Backend/groups-create.tpl.php @@ -4,16 +4,16 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ -/* - * UI Logic - */ +/** + * @var \phpOMS\Views\View $this + */ echo $this->getData('nav')->render(); ?>
@@ -25,9 +25,11 @@ echo $this->getData('nav')->render(); ?> + + + + + +
-
+
diff --git a/Theme/Backend/groups-list.tpl.php b/Theme/Backend/groups-list.tpl.php index cd156eb..207959e 100644 --- a/Theme/Backend/groups-list.tpl.php +++ b/Theme/Backend/groups-list.tpl.php @@ -4,23 +4,16 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ + /** * @var \phpOMS\Views\View $this */ - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - -$footerView->setPages($this->getData('list:count') ?? 0 / 25); -$footerView->setPage(1); -$footerView->setResults($this->getData('list:count') ?? 1); - echo $this->getData('nav')->render(); ?>
diff --git a/Theme/Backend/groups-single.tpl.php b/Theme/Backend/groups-single.tpl.php index 2f4a85e..9d9e499 100644 --- a/Theme/Backend/groups-single.tpl.php +++ b/Theme/Backend/groups-single.tpl.php @@ -4,16 +4,16 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ -/* - * UI Logic - */ +/** + * @var \phpOMS\Views\View $this + */ $group = $this->getData('group'); $permissions = $this->getData('permissions'); $accounts = $this->getData('accounts'); diff --git a/Theme/Backend/modules-list.tpl.php b/Theme/Backend/modules-list.tpl.php index f615a07..33ae66b 100644 --- a/Theme/Backend/modules-list.tpl.php +++ b/Theme/Backend/modules-list.tpl.php @@ -4,26 +4,20 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ + /** * @var \phpOMS\Views\View $this */ -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - $modules = $this->app->moduleManager->getAllModules(); $active = $this->app->moduleManager->getActiveModules(); $installed = $this->app->moduleManager->getInstalledModules(); - -$footerView->setPages(count($modules) / 25); -$footerView->setPage(1); -$footerView->setResults(count($modules)); ?>
diff --git a/Theme/Backend/modules-single.tpl.php b/Theme/Backend/modules-single.tpl.php index 38517f7..2d28daa 100644 --- a/Theme/Backend/modules-single.tpl.php +++ b/Theme/Backend/modules-single.tpl.php @@ -4,16 +4,16 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ + /** * @var \phpOMS\Views\View $this */ - $modules = $this->app->moduleManager->getAllModules(); $active = $this->app->moduleManager->getActiveModules(); $installed = $this->app->moduleManager->getInstalledModules(); diff --git a/Theme/Backend/settings-general.tpl.php b/Theme/Backend/settings-general.tpl.php index eb74935..ade353f 100644 --- a/Theme/Backend/settings-general.tpl.php +++ b/Theme/Backend/settings-general.tpl.php @@ -4,16 +4,16 @@ * * PHP Version 7.1 * - * @package TBD + * @package Modules\Admin\Template\Backend * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ -/* - * UI Logic - */ +/** + * @var \phpOMS\Views\View $this + */ $_oname = $this->getData('oname') ?? ''; $_timezone = $this->getData('timezone') ?? ''; $_timeformat = $this->getData('timeformat') ?? ''; @@ -72,31 +72,36 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
-
+
-
+
-
+
-
+
-
+
@@ -112,7 +117,8 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
+ + + + +
-
+
@@ -167,22 +173,22 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
@@ -198,22 +204,22 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants(); + + + + + +
@@ -229,19 +235,19 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants(); + + + + + @@ -259,28 +265,28 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants(); + + + + + + + +