Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/webdebug.antirutin/include/actions/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/webdebug.antirutin/include/actions/Delete.php

<?
class CWDA_Delete extends CWDA_Plugin {
	CONST GROUP = 'GENERAL';
	CONST CODE = 'DELETE';
	CONST NAME = 'Удаление элементов';
	//
	static function GetDescription() {
		$Descr = 'Плагин для удаления элементов инфоблока.';
		if (!CWDA::IsUtf()) {
			$Descr = CWDA::ConvertCharset($Descr);
		}
		return $Descr;
	}
	static function AddHeadData() {
		//
	}
	static function ShowSettings($IBlockID=false) {
	}
	static function Process($ElementID, $arElement, $Params) {
		$bResult = false;
		if(CIBlockElement::Delete($ElementID)) {
			CWDA::Log('Delete element #'.$ElementID, self::CODE);
			$bResult = true;
		}
		return $bResult;
	}
}
?>