• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/access/accesscode.php
  • Класс: BitrixMainAccessAccessCode
  • Вызов: AccessCode::parse
private function parse()
{
	foreach (self::$map as $pattern => $type)
	{
		if (preg_match('/'. $pattern .'/', $this->accessCode, $matches))
		{
			$this->parsed = true;
			$this->entityType = $type;
			$this->entityPrefix = (string) $matches[1];
			if (array_key_exists('2', $matches))
			{
				$this->entityId = (int) $matches[2];
			}
			return;
		}
	}
}