mirror of
https://github.com/Karaka-Management/oms-Dashboard.git
synced 2026-01-11 17:38:41 +00:00
fix phpcs findings
This commit is contained in:
parent
0fa2c825a2
commit
4497e32dc2
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DatabasePool;
|
|||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
* @package Modules\Dashboard\Admin\Install
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard\Admin\Install
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Navigation
|
||||
{
|
||||
|
|
@ -34,7 +34,7 @@ class Navigation
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function install(string $path, DatabasePool $dbPool) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -24,10 +24,10 @@ use phpOMS\Module\InstallerAbstract;
|
|||
/**
|
||||
* Installer class.
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Installer extends InstallerAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\StatusAbstract;
|
|||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Status extends StatusAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\UninstallerAbstract;
|
|||
/**
|
||||
* Uninstaller class.
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Uninstaller extends UninstallerAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\UpdaterAbstract;
|
|||
/**
|
||||
* Updater class.
|
||||
*
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Updater extends UpdaterAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -28,10 +28,10 @@ use phpOMS\Model\Message\FormValidation;
|
|||
/**
|
||||
* Api controller for the dashboard module.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class ApiController extends Controller
|
||||
{
|
||||
|
|
@ -42,7 +42,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @return array<string, bool> Returns the validation array of the request
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function validateBoardCreate(RequestAbstract $request) : array
|
||||
{
|
||||
|
|
@ -66,7 +66,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @api
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function apiBoardCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||
{
|
||||
|
|
@ -88,7 +88,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @return DashboardBoard Returns the created board from the request
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function createBoardFromRequest(RequestAbstract $request) : DashboardBoard
|
||||
{
|
||||
|
|
@ -107,7 +107,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @return array<string, bool> Returns the validation array of the request
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function validateComponentCreate(RequestAbstract $request) : array
|
||||
{
|
||||
|
|
@ -132,7 +132,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @api
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function apiComponentCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||
{
|
||||
|
|
@ -154,7 +154,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @return DashboardComponent Returns the created board from the request
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function createComponentFromRequest(RequestAbstract $request) : DashboardComponent
|
||||
{
|
||||
|
|
@ -177,7 +177,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @api
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function apiComponentAdd(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -25,21 +25,23 @@ use phpOMS\Views\View;
|
|||
/**
|
||||
* Dashboard class.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class BackendController extends Controller
|
||||
{
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -20,10 +20,10 @@ use phpOMS\Module\WebInterface;
|
|||
/**
|
||||
* Dashboard class.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Controller extends ModuleAbstract implements WebInterface
|
||||
{
|
||||
|
|
@ -31,7 +31,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module path.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_PATH = __DIR__ . '/../';
|
||||
|
|
@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module version.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_VERSION = '1.0.0';
|
||||
|
|
@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_NAME = 'Dashboard';
|
||||
|
|
@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module id.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_ID = 1000200000;
|
||||
|
|
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Providing.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $providing = [];
|
||||
|
|
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Dependencies.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $dependencies = [];
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,17 +19,17 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
|
|||
/**
|
||||
* DashboardBoard class.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class DashboardBoard implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
|
@ -37,7 +37,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
/**
|
||||
* Title.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected string $title = '';
|
||||
|
|
@ -45,7 +45,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
/**
|
||||
* Account.
|
||||
*
|
||||
* @var null|int
|
||||
* @var null|int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $account = null;
|
||||
|
|
@ -53,7 +53,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
/**
|
||||
* Status.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $status = DashboardBoardStatus::ACTIVE;
|
||||
|
|
@ -61,7 +61,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
/**
|
||||
* Dashboard component.
|
||||
*
|
||||
* @var DashboardComponent[]
|
||||
* @var DashboardComponent[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected array $components = [];
|
||||
|
|
@ -71,7 +71,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : int
|
||||
{
|
||||
|
|
@ -83,7 +83,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return null|int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getAccount()
|
||||
{
|
||||
|
|
@ -97,7 +97,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setAccount($id) : void
|
||||
{
|
||||
|
|
@ -109,7 +109,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getTitle() : string
|
||||
{
|
||||
|
|
@ -123,7 +123,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setTitle(string $title) : void
|
||||
{
|
||||
|
|
@ -135,7 +135,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getStatus() : int
|
||||
{
|
||||
|
|
@ -151,7 +151,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @throws InvalidEnumValue
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setStatus(int $status) : void
|
||||
{
|
||||
|
|
@ -169,7 +169,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function addComponent(DashboardComponent $element) : int
|
||||
{
|
||||
|
|
@ -189,7 +189,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function removeComponent($id) : bool
|
||||
{
|
||||
|
|
@ -207,7 +207,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return DashboardComponent[]
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getComponents() : array
|
||||
{
|
||||
|
|
@ -221,7 +221,7 @@ class DashboardBoard implements \JsonSerializable
|
|||
*
|
||||
* @return DashboardComponent
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getComponent(int $id) : DashboardComponent
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -20,17 +20,17 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class DashboardBoardMapper extends DataMapperAbstract
|
||||
{
|
||||
/**
|
||||
* Columns.
|
||||
*
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $columns = [
|
||||
|
|
@ -43,7 +43,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $hasMany = [
|
||||
|
|
@ -58,7 +58,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Belongs to.
|
||||
*
|
||||
* @var array<string, array<string, string>>
|
||||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $belongsTo = [
|
||||
|
|
@ -71,7 +71,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'dashboard_board';
|
||||
|
|
@ -79,7 +79,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'dashboard_board_id';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
/**
|
||||
* DashboardBoard status enum.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class DashboardBoardStatus extends Enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,17 +17,17 @@ namespace Modules\Dashboard\Models;
|
|||
/**
|
||||
* DashboardBoard class.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class DashboardComponent implements \JsonSerializable
|
||||
{
|
||||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
|
@ -35,7 +35,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
/**
|
||||
* Order.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $order = 0;
|
||||
|
|
@ -43,7 +43,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
/**
|
||||
* Board.
|
||||
*
|
||||
* @var int|DashboardBoard
|
||||
* @var int|DashboardBoard
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $board = 0;
|
||||
|
|
@ -51,7 +51,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
/**
|
||||
* Module.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected string $module = '';
|
||||
|
|
@ -59,7 +59,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
/**
|
||||
* Component.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected string $component = '';
|
||||
|
|
@ -69,7 +69,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : int
|
||||
{
|
||||
|
|
@ -81,7 +81,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getOrder() : int
|
||||
{
|
||||
|
|
@ -95,7 +95,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setOrder(int $order) : void
|
||||
{
|
||||
|
|
@ -107,7 +107,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getComponent() : string
|
||||
{
|
||||
|
|
@ -121,7 +121,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setComponent(string $component) : void
|
||||
{
|
||||
|
|
@ -133,7 +133,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getModule() : string
|
||||
{
|
||||
|
|
@ -147,7 +147,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setModule(string $module) : void
|
||||
{
|
||||
|
|
@ -159,7 +159,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return int|DashboardBoard
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getBoard()
|
||||
{
|
||||
|
|
@ -173,7 +173,7 @@ class DashboardComponent implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setBoard($id) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,17 +19,17 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class DashboardComponentMapper extends DataMapperAbstract
|
||||
{
|
||||
/**
|
||||
* Columns.
|
||||
*
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $columns = [
|
||||
|
|
@ -43,7 +43,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Belongs to.
|
||||
*
|
||||
* @var array<string, array<string, string>>
|
||||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $belongsTo = [
|
||||
|
|
@ -56,7 +56,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'dashboard_component';
|
||||
|
|
@ -64,7 +64,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'dashboard_component_id';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,10 +17,10 @@ namespace Modules\Dashboard\Models;
|
|||
/**
|
||||
* Null model
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class NullDashboardBoard extends DashboardBoard
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,10 +17,10 @@ namespace Modules\Dashboard\Models;
|
|||
/**
|
||||
* Null model
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class NullDashboardComponent extends DashboardComponent
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Dashboard
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
/**
|
||||
* Permision state enum.
|
||||
*
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Dashboard
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class PermissionState extends Enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
return ['Navigation' => [
|
||||
'Dashboard' => 'Dashboard',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user