Bitrix API

Department extends Intranet

FinalYes

Table of Contents

Constants

MODULE_NAME  = 'intranet'

Methods

getCompanyStructure()  : array<string|int, mixed>
Returns the complete company structure
getData()  : array<string|int, mixed>
Returns basic data for department IDs passed
getFlatListTree()  : mixed
getFlatListTreeByDepartmentId()  : mixed
getMainDepartment()  : mixed
getMainDepartmentAccessCode()  : string
getSubIds()  : array<string|int, mixed>
Returns a list of sub-department IDs for the department $id
getSubordinateIds()  : array<string|int, mixed>
Returns a list of department IDs that are under $userId direction

Constants

MODULE_NAME

public mixed MODULE_NAME = 'intranet'

Methods

getCompanyStructure()

Returns the complete company structure

public static getCompanyStructure() : array<string|int, mixed>
Return values
array<string|int, mixed>

getData()

Returns basic data for department IDs passed

public static getData(array<string|int, mixed> $departmentIds) : array<string|int, mixed>
Parameters
$departmentIds : array<string|int, mixed>
Return values
array<string|int, mixed>

getFlatListTree()

public static getFlatListTree([mixed $sep = '.' ][, mixed $sepMultiplier = 2 ]) : mixed
Parameters
$sep : mixed = '.'
$sepMultiplier : mixed = 2

getFlatListTreeByDepartmentId()

public static getFlatListTreeByDepartmentId(mixed $departmentId[, mixed $sep = '.' ][, mixed $sepMultiplier = 2 ]) : mixed
Parameters
$departmentId : mixed
$sep : mixed = '.'
$sepMultiplier : mixed = 2

getMainDepartment()

public static getMainDepartment() : mixed

getMainDepartmentAccessCode()

public static getMainDepartmentAccessCode([bool $onlyEmployees = false ]) : string
Parameters
$onlyEmployees : bool = false
Return values
string

getSubIds()

Returns a list of sub-department IDs for the department $id

public static getSubIds(mixed $id[, bool $direct = true ][, bool $flat = false ]) : array<string|int, mixed>
Parameters
$id : mixed
$direct : bool = true
$flat : bool = false
Return values
array<string|int, mixed>

getSubordinateIds()

Returns a list of department IDs that are under $userId direction

public static getSubordinateIds([int $userId = 0 ][, bool $recursive = false ]) : array<string|int, mixed>
Parameters
$userId : int = 0
$recursive : bool = false
Return values
array<string|int, mixed>

        
On this page

Search results