Filter extends Common
Table of Contents
Constants
- ACCOMPLICE_PRESET = 'filter_tasks_role_accomplice'
- AUDITOR_PRESET = 'filter_tasks_role_auditor'
- ORIGINATOR_PRESET = 'filter_tasks_role_originator'
- REGULAR_PRESET = 'filter_tasks_task_is_regular'
- RESPONSIBLE_PRESET = 'filter_tasks_role_responsible'
- SCRUM_PRESET = 'filter_tasks_scrum'
Methods
- getAllPresets() : array<string|int, mixed>
- getAvailableFields() : array<string|int, mixed>
- Get available fields in filter.
- getContext() : string
- getDefaultPresetKey() : mixed
- getDefaultRoleId() : false|mixed|string|null
- getFilters() : array<string|int, mixed>
- getId() : string|null
- getInstance() : static
- getListStateInstance() : CTaskListState|null
- getOptions() : Options
- getPresets() : array<string|int, mixed>
- getRegularPresets() : array<string|int, mixed>
- getRolePresets() : array<string|int, mixed>
- getUserId() : int
- isExactSearchApplied() : bool
- The method checks if the current filter is more accurate than presets.
- isRolesEnabled() : bool
- isScrumProject() : bool
- process() : array<string|int, mixed>
- setContext() : static
- setFilterData() : void
- setGanttMode() : static
- setRolePresetsEnabledForMobile() : void
Constants
ACCOMPLICE_PRESET
public
mixed
ACCOMPLICE_PRESET
= 'filter_tasks_role_accomplice'
AUDITOR_PRESET
public
mixed
AUDITOR_PRESET
= 'filter_tasks_role_auditor'
ORIGINATOR_PRESET
public
mixed
ORIGINATOR_PRESET
= 'filter_tasks_role_originator'
REGULAR_PRESET
public
mixed
REGULAR_PRESET
= 'filter_tasks_task_is_regular'
RESPONSIBLE_PRESET
public
mixed
RESPONSIBLE_PRESET
= 'filter_tasks_role_responsible'
SCRUM_PRESET
public
mixed
SCRUM_PRESET
= 'filter_tasks_scrum'
Methods
getAllPresets()
public
getAllPresets() : array<string|int, mixed>
Return values
array<string|int, mixed>getAvailableFields()
Get available fields in filter.
public
getAvailableFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getContext()
public
getContext() : string
Return values
stringgetDefaultPresetKey()
public
getDefaultPresetKey() : mixed
getDefaultRoleId()
public
getDefaultRoleId() : false|mixed|string|null
Return values
false|mixed|string|nullgetFilters()
public
getFilters() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
public
getId() : string|null
Return values
string|nullgetInstance()
public
static getInstance([int $userId = 0 ][, int|null $groupId = 0 ][, string|null $id = null ]) : static
Parameters
- $userId : int = 0
- $groupId : int|null = 0
- $id : string|null = null
Return values
staticgetListStateInstance()
public
getListStateInstance() : CTaskListState|null
Return values
CTaskListState|nullgetOptions()
public
getOptions() : Options
Return values
OptionsgetPresets()
public
static getPresets([self $filterInstance = null ]) : array<string|int, mixed>
Parameters
- $filterInstance : self = null
Return values
array<string|int, mixed>getRegularPresets()
public
static getRegularPresets([int $startSort = 0 ]) : array<string|int, mixed>
Parameters
- $startSort : int = 0
Return values
array<string|int, mixed>getRolePresets()
public
static getRolePresets([bool $isScrumProject = false ]) : array<string|int, mixed>
Parameters
- $isScrumProject : bool = false
Return values
array<string|int, mixed>getUserId()
public
getUserId() : int
Return values
intisExactSearchApplied()
The method checks if the current filter is more accurate than presets.
public
isExactSearchApplied() : bool
Return values
boolisRolesEnabled()
public
static isRolesEnabled() : bool
Return values
boolisScrumProject()
public
isScrumProject() : bool
Return values
boolprocess()
public
process() : array<string|int, mixed>
Return values
array<string|int, mixed>setContext()
public
setContext(string $context) : static
Parameters
- $context : string
Return values
staticsetFilterData()
public
setFilterData(array<string|int, mixed> $filterData) : void
Parameters
- $filterData : array<string|int, mixed>
setGanttMode()
public
setGanttMode(bool $isGantt) : static
Parameters
- $isGantt : bool
Return values
staticsetRolePresetsEnabledForMobile()
public
static setRolePresetsEnabledForMobile(bool $enabled) : void
Parameters
- $enabled : bool