Documentation

getUniqueFieldsByTree

getUniqueFieldsByTree($tree);

Generates full list of fields that are available in the report from the main and binded entities on the basis of data, returned by the generateColumnTree method. Basically, this function expands field data into the list sourced from treelike structure, returned by generateColumnTree. Keys for this list are report field definitions relative to basic entity. Static method.

Function parameters

Parameter Description
$tree Tree with description of fields, available in the report; result for calling the generateColumnTree method.

Returned value

Array, which keys are field definitions relative to basic entity, and values - objects, describing the report fields.

Note. The result is used to quickly retrieve objects that describe fields, by their definition.


© «Bitrix24», 2001-2024