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

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