• Модуль: meeting
  • Путь к файлу: ~/bitrix/modules/meeting/classes/general/meeting.php
  • Класс: CAllMeeting
  • Вызов: CAllMeeting::CheckPlace
static function CheckPlace($place)
{
	if ($place)
	{
		$matches = [];
		if(preg_match('/^'.self::MEETING_ROOM_PREFIX.'_([d]+)_([d]+)$/', $place, $matches))
		{
			return [
				'ROOM_IBLOCK' => (int)$matches[1],
				'ROOM_ID' => (int)$matches[2]
			];
		}

		if(preg_match('/^'.self::CALENDAR_ROOM_PREFIX.'_([d]+)$/', $place, $matches))
		{
			return [
				'ROOM_ID' => (int)$matches[1],
			];
		}
	}

	return false;
}