• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/grid/rowtype.php
  • Класс: BitrixIblockGridRowType
  • Вызов: RowType::parseIndex
static function parseIndex(string $index): array
{
	$re = '/^(E|S|)(d+)$/';
	if (preg_match($re, $index, $m))
	{
		$type = ($m[1] ?: RowType::ELEMENT);
		$index = (int)$m[2];

		return [$type, $index];
	}
	elseif (is_numeric($index))
	{
		return [RowType::ELEMENT, (int)$index];
	}

	throw new SystemException('Invalid index format');
}