• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/block.php
  • Класс: BitrixLandingBlock
  • Вызов: Block::getCardCount
public function getCardCount($selector)
{
	if (!is_string($selector))
	{
		return 0;
	}

	$doc = $this->getDom();
	$resultList = $doc->querySelectorAll($selector);
	return count($resultList);
}