Documentation

GetSectionElementsCount

Obsolete

int
CIBlockSection::GetSectionElementsCount(
 int ID,
 array arFilter = Array()
);

Returns the number of elements in the section, with respect to the filter settings.

Parameters

ParameterDescription
ID Section ID.
arFilter An array of the format Array("filter field"=>"value", ...)
The filter field can be the following:
  • ACTIVE - active elements (Y|N);
  • CNT_ALL - count the unpublished elements (only if the Workflow module is installed);
  • PROPERTY - array for filtering by values: Array("property ID"=>"value", ...).

Remarks

This method is obsolete. Use CIBlockElement::GetList instead with the grouping enabled.

See Also

  • CIBlockElement::GetList
  • © «Bitrix24», 2001-2024