Bitrix API

RichData implements RestConvertible

Table of Contents

Interfaces

RestConvertible

Constants

CALENDAR_TYPE  = 'CALENDAR'
DYNAMIC_TYPE  = 'DYNAMIC'
LANDING_TYPE  = 'LANDING'
LINK_TYPE  = 'LINK'
POST_TYPE  = 'POST'
TASKS_TYPE  = 'TASKS'

Methods

getAllowedUsers()  : array<string|int, mixed>|null
Returns an array of user ids who can access this rich data If null is returned, then there are no restrictions.
getDescription()  : string|null
getId()  : int|null
getLink()  : string|null
getName()  : string|null
getPreviewUrl()  : string|null
getRestEntityName()  : string
Returns the name of the entity that will be used in the rest response
getType()  : string|null
initByAttach()  : self
setAllowedUsers()  : RichData
setDescription()  : RichData
setId()  : RichData
setLink()  : RichData
setName()  : RichData
setPreviewUrl()  : RichData
setType()  : RichData
toRestFormat()  : array<string|int, mixed>|null
Returns an array in JSON like format to return the entity as a rest response.

Constants

CALENDAR_TYPE

public mixed CALENDAR_TYPE = 'CALENDAR'

DYNAMIC_TYPE

public mixed DYNAMIC_TYPE = 'DYNAMIC'

LANDING_TYPE

public mixed LANDING_TYPE = 'LANDING'
public mixed LINK_TYPE = 'LINK'

POST_TYPE

public mixed POST_TYPE = 'POST'

TASKS_TYPE

public mixed TASKS_TYPE = 'TASKS'

Methods

getAllowedUsers()

Returns an array of user ids who can access this rich data If null is returned, then there are no restrictions.

public getAllowedUsers() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getDescription()

public getDescription() : string|null
Return values
string|null

getId()

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

getName()

public getName() : string|null
Return values
string|null

getPreviewUrl()

public getPreviewUrl() : string|null
Return values
string|null

getRestEntityName()

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

public static getRestEntityName() : string
Return values
string

getType()

public getType() : string|null
Return values
string|null

initByAttach()

public static initByAttach(CIMMessageParamAttach|null $attach) : self
Parameters
$attach : CIMMessageParamAttach|null
Return values
self

setAllowedUsers()

public setAllowedUsers(array<string|int, mixed> $allowedUsers) : RichData
Parameters
$allowedUsers : array<string|int, mixed>
Return values
RichData

setDescription()

public setDescription(string|null $description) : RichData
Parameters
$description : string|null
Return values
RichData

setPreviewUrl()

public setPreviewUrl(string|null $previewUrl) : RichData
Parameters
$previewUrl : string|null
Return values
RichData

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

        
On this page

Search results