september update 1

This commit is contained in:
Dennis Eichhorn 2021-09-19 19:50:15 +02:00
parent 60db34b6df
commit e38854ed80
5 changed files with 29 additions and 31 deletions

View File

@ -49,6 +49,6 @@ final class Installer extends InstallerAbstract
private static function installDefaultColors() : void
{
$setting = new Setting();
SettingMapper::create($setting->with(0, '1007500001', '#ff000000;#ff00ff00;#ffffffff', 'Tag'));
SettingMapper::create($setting->with(0, '1007500001', '#ff000000;#ff00ff00;#ffffffff', '(#[a-fA-F0-9]{8};)*(#[a-fA-F0-9]{8})', 'Tag'));
}
}

View File

@ -1,4 +1,16 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
use Modules\Tag\Controller\ApiController;
use Modules\Tag\Models\PermissionState;

View File

@ -1,4 +1,16 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
use Modules\Tag\Controller\BackendController;
use Modules\Tag\Models\PermissionState;

View File

@ -43,7 +43,7 @@ class Tag implements \JsonSerializable, ArrayableInterface
* @var string|TagL11n
* @since 1.0.0
*/
protected $title = '';
protected string|TagL11n $title = '';
/**
* Color RGBA.

View File

@ -41,7 +41,7 @@ class TagL11n implements \JsonSerializable, ArrayableInterface
* @var int
* @since 1.0.0
*/
protected int $tag = 0;
public int $tag = 0;
/**
* Language.
@ -84,32 +84,6 @@ class TagL11n implements \JsonSerializable, ArrayableInterface
return $this->id;
}
/**
* Set tag.
*
* @param int $tag Tag id
*
* @return void
*
* @since 1.0.0
*/
public function setTag(int $tag) : void
{
$this->tag = $tag;
}
/**
* Get tag
*
* @return int
*
* @since 1.0.0
*/
public function getTag() : int
{
return $this->tag;
}
/**
* Get language
*