Bitrix API

RestEntity extends Entity, RestConvertible

Table of Contents

Methods

getId()  : int|null
Returns the id of the entity
getRestEntityName()  : string
Returns the name of the entity that will be used in the rest response
toRestFormat()  : array<string|int, mixed>|null
Returns an array in JSON like format to return the entity as a rest response.

Methods

getId()

Returns the id of the entity

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

getRestEntityName()

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

public static getRestEntityName() : string
Return values
string

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