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
getDefaultStructure()
public
static getDefaultStructure() : Structure|null
Return values
Structure|nullgetNodeHeads()
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}getRootStructureDepartment()
public
static getRootStructureDepartment() : Node|null