|
final const | TYPE = 'user_task_list' |
|
const | TYPE = '' |
| All entity classes must redeclare this to match their resource_type . More...
|
|
|
final const | DIR = 'user_task_lists' |
|
const | MAP |
|
const | DIR = '' |
| All entity classes must redeclare this to match their REST directory. More...
|
|
const | OPT_FIELDS = [] |
|
readonly Api Api | $api |
|
array array self[] AbstractEntity[] | $data = [] |
|
array bool[] | $diff = [] |
|
const | MAP = [] |
|
|
mixed | _get (string $field) |
| Lazy-loads missing fields. More...
|
|
void | _reload (string $field) |
|
void | _setData (array $data) |
|
bool | _has (string $field) |
| Magic method: hasField() More...
|
|
T | _hydrate (string $class, $item) |
| Sub-data factory that draws from the entity pool. More...
|
|
bool | _is (string $field) |
| Magic method: isField() More...
|
|
bool | _of (string $resourceSubtype) |
| Magic method: ofResourceSubtypeValue() More...
|
|
array | _select (string|iterable $subject, callable $filter,... $args) |
| Magic method: selectField(callable $filter) More...
|
|
$this | _set (string $field, $value) |
| Magic method: setField(mixed $value) More...
|
|
void | _setField (string $field, $value) |
| Sets a value, hydrating if mapped, and clears the diff. More...
|
|
◆ MAP
Initial value:= [
'owner' => User::class,
'workspace' => Workspace::class
]
◆ getIterator()
Generator<Task> getIterator |
( |
array |
$filter = Task::GET_INCOMPLETE | ) |
|
◆ getName()
◆ getOwner()
◆ getWorkspace()
◆ selectTasks()
Task [] selectTasks |
( |
callable |
$filter, |
|
|
array |
$apiFilter = Task::GET_INCOMPLETE |
|
) |
| |
- Parameters
-
callable | $filter | fn( Task $task ): bool |
array | $apiFilter | Given to the API to reduce network load. |
- Returns
- Task[]
Reimplemented from TaskIteratorTrait.