• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblock.php
  • Класс: CWebDavIblock
  • Вызов: CWebDavIblock::runCleaningTrash
private function runCleaningTrash($sectionId)
{
	//copy-past from  _delete_section()
	if($this->workflow == 'bizproc' || $this->workflow == 'bizproc_limited')
	{
		AddEventHandler("iblock", "OnBeforeIBlockElementDelete", Array($this, "_onDeleteElement"));
		AddEventHandler("iblock", "OnBeforeIBlockSectionDelete", Array($this, "_onDeleteSection"));
	}

	$se = new CIBlockSection();
	if(!$se->Delete($sectionId, false))
	{
		return $this->ThrowError("423 Locked", "423", GetMessage('WD_FILE_ERROR16'));
	}

	return true;
}