Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
category.php
1
<?php
2
namespace
Bitrix\Report\VisualConstructor\Helper
;
3
8
class
Category
9
{
18
public
static
function
getOptionsTree
($categories, $options = array(), $depth = 0)
19
{
20
21
$prefix = str_repeat(
'-'
, $depth);
22
$depth++;
23
24
foreach
($categories as $category)
25
{
26
$options[$category->getKey()] = $prefix . $category->getLabel();
27
$options =
self::getOptionsTree
($category->children, $options, $depth);
28
}
29
30
return
$options;
31
}
32
}
Bitrix\Report\VisualConstructor\Helper\Category
Definition
category.php:9
Bitrix\Report\VisualConstructor\Helper\Category\getOptionsTree
static getOptionsTree($categories, $options=array(), $depth=0)
Definition
category.php:18
Bitrix\Report\VisualConstructor\Helper
Definition
analytic.php:2
modules
report
lib
visualconstructor
helper
category.php
Создано системой
1.10.0