• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/schedule/shiftservice.php
  • Класс: BitrixTimemanServiceScheduleShiftService
  • Вызов: ShiftService::deleteShiftById
public function deleteShiftById(Shift $shift, Schedule $schedule, $activeUserIds = [])
{
	$result = $this->shiftRepository->markShiftDeleted($shift->getId());
	if (!$result->isSuccess())
	{
		return $result;
	}
	return $this->deleteFutureShiftPlans(
		$schedule,
		$shift,
		$activeUserIds
	);
}