• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/rooms/manager.php
  • Класс: BitrixCalendarRoomsManager
  • Вызов: Manager::deleteRoom
public function deleteRoom(): Manager
{
	if ($this->getError())
	{
		return $this;
	}

	if (!$this->room->getName())
	{
		$this->room->setName($this->getRoomName($this->room->getId()));
	}

	$this->room->delete();

	if ($this->room->getError())
	{
		$this->addError($this->room->getError());
	}

	return $this;
}