mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
cleanup and tests added for ci/cd
This commit is contained in:
parent
095bfe3323
commit
4063ce240d
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Tasks
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Tasks\Theme\Backend\Components\Tasks;
|
||||
|
||||
/**
|
||||
* Component view.
|
||||
*
|
||||
* @package Modules\Tasks
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class PriorityView extends ListView
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Tasks
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Tasks\Theme\Backend\Components\Tasks;
|
||||
|
||||
/**
|
||||
* Component view.
|
||||
*
|
||||
* @package Modules\Tasks
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class StatusView extends ListView
|
||||
{
|
||||
}
|
||||
|
|
@ -17,10 +17,27 @@ namespace Modules\Tasks\Views;
|
|||
use Modules\Tasks\Models\TaskStatus;
|
||||
use phpOMS\Views\View;
|
||||
|
||||
/**
|
||||
* Task view class.
|
||||
*
|
||||
* @package Modules\Tasks
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class TaskView extends View
|
||||
{
|
||||
protected $media = [];
|
||||
|
||||
/**
|
||||
* Get task status color.
|
||||
*
|
||||
* @param int $status Status
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getStatus(int $status) : string
|
||||
{
|
||||
if ($status === TaskStatus::OPEN) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user