Room::delete

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Room
  4. delete
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/rooms/room.php
  • Класс: BitrixCalendarRoomsRoom
  • Вызов: Room::delete
public function delete(): Room
{
	$section = SectionTable::delete($this->id);
	if (!$section->isSuccess())
	{
		$this->addError(new Error(Loc::getMessage('EC_ROOM_DELETE_ERROR')));

		return $this;
	}

	$location = LocationTable::delete($this->locationId);
	if (!$location->isSuccess())
	{
		$this->addError(new Error(Loc::getMessage('EC_ROOM_DELETE_ERROR')));

		return $this;
	}

	return $this;
}

Добавить комментарий