• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/database/structure/closuretree.php
  • Класс: BitrixTasksInternalsDataBaseStructureClosureTree
  • Вызов: ClosureTree::getCount
static function getCount()
{
	$tableName = static::getTableName();
	$connection = MainHttpApplication::getConnection();

	$res = $connection->query("select count(*) as CNT from ".$tableName)->fetch();

	return intval($res['CNT']);
}