Bitrix API

StructureHelper

Table of Contents

Methods

getDefaultStructure()  : Structure|null
getNodeHeads()  : array<string|int, mixed>
getNodeInfo()  : array{id: int, parentId: int|null, name: string, description: string|null, heads: array{id: int, name: string, avatar: string, url: string, role: string, workPosition: string|null}, userCount: int}
returns an array of department data along with the data of the heads
getRootStructureDepartment()  : Node|null

Methods

getNodeHeads()

public static getNodeHeads(Node $node) : array<string|int, mixed>
Parameters
$node : Node
Return values
array<string|int, mixed>

getNodeInfo()

returns an array of department data along with the data of the heads

public static getNodeInfo(Node $node[, bool $withHeads = false ]) : array{id: int, parentId: int|null, name: string, description: string|null, heads: array{id: int, name: string, avatar: string, url: string, role: string, workPosition: string|null}, userCount: int}
Parameters
$node : Node
$withHeads : bool = false
Return values
array{id: int, parentId: int|null, name: string, description: string|null, heads: array{id: int, name: string, avatar: string, url: string, role: string, workPosition: string|null}, userCount: int}

        
On this page

Search results