ResourceBooking::onDelete

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. ResourceBooking
  4. onDelete
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/userfield/resourcebooking.php
  • Класс: BitrixCalendarUserFieldResourceBooking
  • Вызов: ResourceBooking::onDelete
static function onDelete($userField, $values, $userId = false)
{
	$resourseList = InternalsResourceTable::getList(
		array(
			"filter" => array(
				"PARENT_TYPE" => $userField['ENTITY_ID'],
				"PARENT_ID" => $userField['ENTITY_VALUE_ID'],
				"UF_ID" => $userField['ID']
			)
		)
	);

	while ($resourse = $resourseList->fetch())
	{
		self::releaseResource($resourse);
	}
}

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