ChecklistProvider
FinalYes
Table of Contents
Methods
- __construct() : mixed
- buildTreeStructure() : CheckList
- canAdd() : bool
- fillCommonDataForTasks() : array<string|int, mixed>
- fillFullDataForTasks() : array<string|int, mixed>
- getChecklistTree() : array<string|int, mixed>
Methods
__construct()
public
__construct([int|null $userId = null ][, string $facade = TaskCheckListFacade::class ]) : mixed
Parameters
- $userId : int|null = null
- $facade : string = TaskCheckListFacade::class
buildTreeStructure()
public
buildTreeStructure(mixed $checkListItems) : CheckList
Parameters
- $checkListItems : mixed
Return values
CheckListcanAdd()
public
canAdd(int $taskId) : bool
Parameters
- $taskId : int
Return values
boolfillCommonDataForTasks()
public
fillCommonDataForTasks(array<string|int, mixed> $tasks) : array<string|int, mixed>
Parameters
- $tasks : array<string|int, mixed>
Return values
array<string|int, mixed>fillFullDataForTasks()
public
fillFullDataForTasks(array<string|int, mixed> $tasks) : array<string|int, mixed>
Parameters
- $tasks : array<string|int, mixed>
Return values
array<string|int, mixed>getChecklistTree()
public
getChecklistTree(int $taskId[, bool $isForCopy = false ]) : array<string|int, mixed>
Parameters
- $taskId : int
- $isForCopy : bool = false