DeadlinesStageManager
Table of Contents
Constants
- FILTER_FIELD_CONTAINS_STAGE = 'CURRENT_DEADLINES_STAGE_ID'
- STAGE_COMPLETED = 'COMPLETED'
- STAGE_LATER = 'LATER'
- STAGE_NEXT_WEEK = 'NEXT_WEEK'
- STAGE_OVERDUE = 'OVERDUE'
- STAGE_THIS_WEEK = 'THIS_WEEK'
- STAGE_TODAY = 'TODAY'
Methods
- __construct() : mixed
- applyStageFilter() : array<string|int, mixed>
- calculateDateByStage() : Date|null
- checkIsStageAllowed() : bool
- dateFieldByEntityType() : string
- fillDeadlinesDefaultValues() : array<string|int, mixed>
- Make associative array filled by default values specified for current entity
- isEntitySupportDeadlines() : bool
- prepareItemsFilter() : array<string|int, mixed>
- prepareItemsResult() : array<string|int, mixed>
- stagesList() : array<string|int, mixed>
Constants
FILTER_FIELD_CONTAINS_STAGE
public
mixed
FILTER_FIELD_CONTAINS_STAGE
= 'CURRENT_DEADLINES_STAGE_ID'
STAGE_COMPLETED
public
mixed
STAGE_COMPLETED
= 'COMPLETED'
STAGE_LATER
public
mixed
STAGE_LATER
= 'LATER'
STAGE_NEXT_WEEK
public
mixed
STAGE_NEXT_WEEK
= 'NEXT_WEEK'
STAGE_OVERDUE
public
mixed
STAGE_OVERDUE
= 'OVERDUE'
STAGE_THIS_WEEK
public
mixed
STAGE_THIS_WEEK
= 'THIS_WEEK'
STAGE_TODAY
public
mixed
STAGE_TODAY
= 'TODAY'
Methods
__construct()
public
__construct(int $entityTypeId) : mixed
Parameters
- $entityTypeId : int
applyStageFilter()
public
applyStageFilter(string $stage, array<string|int, mixed> $filter) : array<string|int, mixed>
Parameters
- $stage : string
- $filter : array<string|int, mixed>
Return values
array<string|int, mixed>calculateDateByStage()
public
calculateDateByStage(string $stage) : Date|null
Parameters
- $stage : string
Return values
Date|nullcheckIsStageAllowed()
public
checkIsStageAllowed(string $stage) : bool
Parameters
- $stage : string
Return values
booldateFieldByEntityType()
public
static dateFieldByEntityType(int $entityTypeId) : string
Parameters
- $entityTypeId : int
Return values
stringfillDeadlinesDefaultValues()
Make associative array filled by default values specified for current entity
public
fillDeadlinesDefaultValues(array<string|int, mixed> $data, string $deadlineStage) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
- $deadlineStage : string
Return values
array<string|int, mixed>isEntitySupportDeadlines()
public
static isEntitySupportDeadlines(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolprepareItemsFilter()
public
prepareItemsFilter(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
- $parameters : array<string|int, mixed>
-
It is parameters same as of used by getListEx or getList methods of crm entities.
Return values
array<string|int, mixed>prepareItemsResult()
public
prepareItemsResult(CDBResult $dbItemsResult, string|null $columnId) : array<string|int, mixed>
Parameters
- $dbItemsResult : CDBResult
- $columnId : string|null
Return values
array<string|int, mixed>stagesList()
public
stagesList() : array<string|int, mixed>