Bitrix API

Department implements RestEntity

Table of Contents

Interfaces

RestEntity

Methods

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

Methods

__construct()

public __construct(int $id) : mixed
Parameters
$id : int

getDepth()

public getDepth() : int
Return values
int

getId()

Returns the id of the entity

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

getName()

public getName() : string
Return values
string

getRestEntityName()

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

public static getRestEntityName() : string
Return values
string

isExist()

public isExist() : bool
Return values
bool

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