• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/sticker.php
  • Класс: CSticker
  • Вызов: CSticker::Delete
static function Delete($ids = array())
{
	if (!is_array($ids))
		$ids = array($ids);

	if (!CSticker::CanDoOperation('sticker_del'))
		return GetMessage('FMST_DEL_ACCESS_ERROR');

	if (count($ids) == 0)
		return GetMessage('FMST_NO_ITEMS_WARN');

	global $DB;
	$strIds = "";
	for($i=0; $i < count($ids); $i++)
		$strIds .= ",".intval($ids[$i]);
	$strSql = "DELETE FROM b_sticker WHERE ID in (".trim($strIds, ", ").")";

	if (!$DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__)) return GetMessage('FMST_REQ_ERROR'); CSticker::ClearCache(); return true; }