Task planning restrictions
This class stores planning restrictions for a task. More about restrictions here.
Database
Field | Type | Description |
---|---|---|
id | Microbizz\Type\KeyType | Internal MB ID |
task_ref | Microbizz\Type\SingleReferenceType | Reference to the task that this restriction is for |
valid_weekdays | Microbizz\Type\MultiEnumerationType | On which weekdays may this be planned? |
allowed_users | Microbizz\Type\MultiReferenceType | Only plan for these users |
forbidden_users | Microbizz\Type\MultiReferenceType | Never plan for these users |
metadata | Platform\Datarecord\ArrayType | |
create_date | Microbizz\Type\DateTimeType | Created |
change_date | Microbizz\Type\DateTimeType | Changed |
is_deleted | Platform\Datarecord\BoolType |
GetTaskPlanRestrictionsByLastChange
Get all TaskPlanRestrictions changed after a certain date.
Input
changedate | date | Date |
changetime | time | Time |
Output
taskplanrestrictions | collection[TaskPlanRestriction] | All restrictions changed after the given date/time. |
GetTaskPlanRestrictionByTodoID
Get a TaskPlanRestriction for a specific todo/task.
Input
todoid | int | ID of a todo object |
Output
taskplanrestriction | TaskPlanRestriction | The restriction for this task, if one exists. |