- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/classes/general/event_calendar.php
- Класс: CEventCalendar
- Вызов: CEventCalendar::ConfirmEvent
function ConfirmEvent($arParams)
{
global $DB, $USER;
if ($this->CheckPermissionForEvent($arParams, true))
{
$bCheck = $arParams['bCheckOwner'] === false;
if (!$bCheck)
{
$arFilter = array(
"ID" => $arParams['id'],
"IBLOCK_ID" => $this->iblockId,
"ACTIVE" => "Y",
"CREATED_BY" => $USER->GetId()
);
$dbel = CIBlockElement::GetList(array("DATE_ACTIVE_FROM" => "ASC"),$arFilter,false,false,array());
if ($arElements = $dbel->GetNext())
$bCheck = true;
}
if ($bCheck)
{
$bs = new CIBlockElement;
$bs->SetPropertyValuesEx($arParams['id'], $this->iblockId, array("CONFIRMED" => $this->GetConfirmedID($this->iblockId, "Y")));
}
}
}