• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/classes/general/event_calendar.php
  • Класс: CECCalendar
  • Вызов: CECCalendar::Delete
function Delete($ID, $arEvIds = false)
{
	global $DB;
	if (!$this->CheckPermissionForEvent(array(), true))
		return CEventCalendar::ThrowError('EC_ACCESS_DENIED');
	@set_time_limit(0);
	$DB->StartTransaction();
	if(!CIBlockSection::Delete($ID))
	{
		$DB->Rollback();
		return false;
	}
	$DB->Commit();
	return true;
}