mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
37 lines
671 B
PHP
37 lines
671 B
PHP
<?php
|
|
|
|
namespace Helper;
|
|
|
|
/**
|
|
* Task helpers
|
|
*
|
|
* @package helper
|
|
* @author Frederic Guillot
|
|
*/
|
|
class Task extends \Core\Base
|
|
{
|
|
public function getColors()
|
|
{
|
|
return $this->color->getList();
|
|
}
|
|
|
|
public function recurrenceTriggers()
|
|
{
|
|
return $this->task->getRecurrenceTriggerList();
|
|
}
|
|
|
|
public function recurrenceTimeframes()
|
|
{
|
|
return $this->task->getRecurrenceTimeframeList();
|
|
}
|
|
|
|
public function recurrenceBasedates()
|
|
{
|
|
return $this->task->getRecurrenceBasedateList();
|
|
}
|
|
|
|
public function canRemove(array $task)
|
|
{
|
|
return $this->taskPermission->canRemoveTask($task);
|
|
}
|
|
}
|