• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/classes/general/event_calendar.php
  • Класс: CEventCalendar
  • Вызов: CEventCalendar::HandleAbsentEvent
static function HandleAbsentEvent(&$event, $userId, &$a_result)
{
	if (!CModule::IncludeModule("socialnetwork"))
		return;

	if (
		!CSocNetFeatures::IsActiveFeature(SONET_ENTITY_USER, $userId, "calendar")
		||
		!CSocNetFeaturesPerms::CanPerformOperation($GLOBALS['USER']->GetID(), SONET_ENTITY_USER, $userId, "calendar", 'view')
	)
		return;

	$event['USER_ID'] = $userId;
	unset($event['PERIOD'], $event['GUESTS'], $event['STATUS'], $event['HOST'], $event['ACCESSIBILITY'], $event['IMPORTANCE'],$event['PRIVATE'], $event['REMIND'], $event['IBLOCK_ID']);

	if (!isset($a_result[$userId]))
		$a_result[$userId] = array();

	$a_result[$userId][] = $event;
}