class TaskSetService (View source)

Methods useful for working with Task sets.

Properties

protected EntityManager $entityManager
protected TaskService $taskService

Methods

__construct(EntityManager $entityManager, TaskService $taskService)

TaskService constructor.

getList()

No description

getByHandle(string $taskSetHandle)

No description

add(string $handle, string $name, Package $pkg = null)

No description

bool
taskSetContainsTask(TaskSet $set, Task $task)

No description

void
addTaskToSet(Task $task, TaskSet $set)

No description

array
getGroupedTasks()

Used in the tasks dashboard page, this returns a grouped set of tasks. If any tasks are not in a set they are added in a final set named 'Other'

Details

__construct(EntityManager $entityManager, TaskService $taskService)

TaskService constructor.

Parameters

EntityManager $entityManager
TaskService $taskService

getList()

No description

getByHandle(string $taskSetHandle)

No description

Parameters

string $taskSetHandle

add(string $handle, string $name, Package $pkg = null)

No description

Parameters

string $handle
string $name
Package $pkg

bool taskSetContainsTask(TaskSet $set, Task $task)

No description

Parameters

TaskSet $set
Task $task

Return Value

bool

void addTaskToSet(Task $task, TaskSet $set)

No description

Parameters

Task $task
TaskSet $set

Return Value

void

array getGroupedTasks()

Used in the tasks dashboard page, this returns a grouped set of tasks. If any tasks are not in a set they are added in a final set named 'Other'

Return Value

array