Bitrix API

Category

Helper Class for working with categories of report, widget

Table of Contents

Methods

getOptionsTree()  : array<string|int, mixed>
Build readable categories tree.

Methods

getOptionsTree()

Build readable categories tree.

public static getOptionsTree(array<string|int, Category$categories[, array<string|int, mixed> $options = array() ][, int $depth = 0 ]) : array<string|int, mixed>
Parameters
$categories : array<string|int, Category>

Categories collection.

$options : array<string|int, mixed> = array()

Array of options.

$depth : int = 0

Service parameter, to calculate '-' count.

Return values
array<string|int, mixed>

        
On this page

Search results