Bitrix API

TaskItem implements RestEntity, PopupDataAggregatable uses ContextCustomer

Table of Contents

Interfaces

RestEntity
PopupDataAggregatable
An interface for classes that have entities within them that should be taken to the top level of a REST response.

Methods

getById()  : self|null
getColor()  : string
getContext()  : Context
Returns the local or global context for the action.
getCreatorId()  : int
getDeadline()  : DateTime|null
getId()  : int|null
Returns the id of the entity
getMembersIds()  : array<string|int, int>
getPopupData()  : PopupData
Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.
getResponsibleId()  : int
getRestEntityName()  : string
Returns the name of the entity that will be used in the rest response
getState()  : string
getStatus()  : int
getStatusTitle()  : string
getTaskId()  : int
getTitle()  : string
getUrl()  : string
initByRow()  : self
initByTaskObject()  : self
setColor()  : TaskItem
setContext()  : self
Sets new context for operations.
setContextUser()  : self
setCreatorId()  : TaskItem
setDeadline()  : TaskItem
setMembersIds()  : self
setResponsibleId()  : TaskItem
setState()  : TaskItem
setStatus()  : TaskItem
setStatusTitle()  : TaskItem
setTaskId()  : TaskItem
setTitle()  : TaskItem
toRestFormat()  : array<string|int, mixed>|null
Returns an array in JSON like format to return the entity as a rest response.
withContext()  : static
Provides local context for the action.
withContextUser()  : static
Provides local context for the action.

Methods

getById()

public static getById(int $id[, Context|null $context = null ]) : self|null
Parameters
$id : int
$context : Context|null = null
Return values
self|null

getColor()

public getColor() : string
Return values
string

getCreatorId()

public getCreatorId() : int
Return values
int

getId()

Returns the id of the entity

public getId() : int|null
Return values
int|null

getMembersIds()

public getMembersIds() : array<string|int, int>
Return values
array<string|int, int>

getPopupData()

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

public getPopupData([array<string|int, mixed> $excludedList = [] ]) : PopupData
Parameters
$excludedList : array<string|int, mixed> = []
Return values
PopupData

getResponsibleId()

public getResponsibleId() : int
Return values
int

getRestEntityName()

Returns the name of the entity that will be used in the rest response

public static getRestEntityName() : string
Return values
string

getState()

public getState() : string
Return values
string

getStatus()

public getStatus() : int
Return values
int

getStatusTitle()

public getStatusTitle() : string
Return values
string

getTaskId()

public getTaskId() : int
Return values
int

getTitle()

public getTitle() : string
Return values
string

getUrl()

public getUrl() : string
Return values
string

initByRow()

public static initByRow(array<string|int, mixed> $row) : self
Parameters
$row : array<string|int, mixed>
Return values
self

setContext()

Sets new context for operations.

public setContext(Context|null $context) : self
Parameters
$context : Context|null
Return values
self

setContextUser()

public setContextUser(mixed $user) : self
Parameters
$user : mixed
Return values
self

setMembersIds()

public setMembersIds(array<string|int, mixed> $membersIds) : self
Parameters
$membersIds : array<string|int, mixed>
Return values
self

setResponsibleId()

public setResponsibleId(int $responsibleId) : TaskItem
Parameters
$responsibleId : int
Return values
TaskItem

setStatusTitle()

public setStatusTitle(string $statusTitle) : TaskItem
Parameters
$statusTitle : string
Return values
TaskItem

toRestFormat()

Returns an array in JSON like format to return the entity as a rest response.

public toRestFormat([array<string|int, mixed> $option = [] ]) : array<string|int, mixed>|null
Parameters
$option : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

withContext()

Provides local context for the action.

public withContext(Context|null $context) : static
Parameters
$context : Context|null
Return values
static

withContextUser()

Provides local context for the action.

public withContextUser(int|User|User $user) : static
Parameters
$user : int|User|User
Return values
static

        
On this page

Search results