SectionPropertyTable::getCount()
Сигнатура
public static getCount([array<string|int, mixed>|ConditionTree $filter = array() ][, array<string|int, mixed> $cache = array() ]) : int
Описание
Выполняет запрос COUNT к сущности и возвращает результат.
Параметры
$filter
array<string|int, mixed>|ConditionTree
= array()
$cache
array<string|int, mixed>
= array()
Возвращаемое значение
int
Как применяется в SectionPropertyTable
SectionPropertyTable::getCount() — метод класса \Bitrix\Iblock\SectionPropertyTable модуля «Информационные блоки». Это ORM-сущность D7 (наследник DataManager): строки читаются как объекты EO_SectionProperty, наборы — как EO_SectionProperty_Collection. Метод достаётся SectionPropertyTable от DataManager::getCount: поведение общее для всех сущностей, а данные, поля и классы — свои.
Считает строки SectionPropertyTable одним запросом COUNT с тем же синтаксисом фильтра, что у getList().
use Bitrix\Main\Loader;
use Bitrix\Iblock\SectionPropertyTable;
Loader::includeModule('iblock');
$count = SectionPropertyTable::getCount();Собственные методы SectionPropertyTable
validateFilterHint()Возвращает валидаторы для поля FILTER_HINT.
getCount() есть и у других классов модуля «Информационные блоки»: ElementTable, IblockFieldTable, IblockGroupTable, IblockMessageTable, IblockRssTable, IblockSiteTable, IblockTable, InheritedPropertyTable.
Исходный файл: source/iblock/lib/sectionpropertytable.php:516

