class TaskService (View source)

Methods useful for working with Task objects.

Properties

protected EntityManager $entityManager
protected User $user
protected UserInfoRepository $userInfoRepository
protected Date $dateService

Methods

__construct(Date $dateService, User $user, UserInfoRepository $userInfoRepository, EntityManager $entityManager)

TaskService constructor.

getList()

No description

getByID($id)

No description

getByHandle($handle)

No description

User|null
getCurrentUserEntity()

No description

start(Task $task)

No description

complete(Task $task)

No description

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

No description

delete(Task $task)

No description

Details

__construct(Date $dateService, User $user, UserInfoRepository $userInfoRepository, EntityManager $entityManager)

TaskService constructor.

Parameters

Date $dateService
User $user
UserInfoRepository $userInfoRepository
EntityManager $entityManager

getList()

No description

getByID($id)

No description

Parameters

$id

getByHandle($handle)

No description

Parameters

$handle

protected User|null getCurrentUserEntity()

No description

Return Value

User|null

start(Task $task)

No description

Parameters

Task $task

complete(Task $task)

No description

Parameters

Task $task

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

No description

Parameters

string $handle
Package $pkg

delete(Task $task)

No description

Parameters

Task $task