Bitrix API

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'

Methods

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>

checkIsStageAllowed()

public checkIsStageAllowed(string $stage) : bool
Parameters
$stage : string
Return values
bool

dateFieldByEntityType()

public static dateFieldByEntityType(int $entityTypeId) : string
Parameters
$entityTypeId : int
Return values
string

fillDeadlinesDefaultValues()

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
bool

prepareItemsFilter()

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>
Return values
array<string|int, mixed>

        
On this page

Search results