Bitrix API

CalendarItem implements RestEntity uses ContextCustomer

Table of Contents

Interfaces

RestEntity

Methods

getContext()  : Context
Returns the local or global context for the action.
getCreatedBy()  : int
getDateFrom()  : DateTime
getDateTo()  : DateTime
getId()  : int|null
Returns the id of the entity
getMembersIds()  : array<string|int, int>
getOwnerId()  : int
getRestEntityName()  : string
Returns the name of the entity that will be used in the rest response
getTitle()  : string
getType()  : string
getUrl()  : string
initByGetListArray()  : self
initById()  : self
setContext()  : self
Sets new context for operations.
setContextUser()  : self
setCreatedBy()  : CalendarItem
setDateFrom()  : CalendarItem
setDateTo()  : CalendarItem
setId()  : CalendarItem
setMembersIds()  : CalendarItem
setOwnerId()  : CalendarItem
setTitle()  : CalendarItem
setType()  : CalendarItem
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

getCreatedBy()

public getCreatedBy() : 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>

getOwnerId()

public getOwnerId() : 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

getTitle()

public getTitle() : string
Return values
string

getType()

public getType() : string
Return values
string

initByGetListArray()

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

initById()

public static initById(int $id[, Context|null $context = null ]) : self
Parameters
$id : int
$context : Context|null = null
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

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