• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_livefeed.php
  • Класс: CCalendarLiveFeed
  • Вызов: CCalendarLiveFeed::AddEvent
static function AddEvent(&$arSocNetFeaturesSettings): void
{
	$arSocNetFeaturesSettings['calendar']['subscribe_events'] = array(
		'calendar' => array(
			'ENTITIES' => array(
				SONET_SUBSCRIBE_ENTITY_USER => []
			),
			"FORUM_COMMENT_ENTITY" => "EV",
			'OPERATION' => 'view',
			'CLASS_FORMAT' => 'CCalendarLiveFeed',
			'METHOD_FORMAT' => 'FormatEvent',
			'HAS_CB' => 'Y',
			'FULL_SET' => array("calendar", "calendar_comment"),
			"COMMENT_EVENT" => array(
				"MODULE_ID" => "calendar",
				"EVENT_ID" => "calendar_comment",
				"OPERATION" => "view",
				"OPERATION_ADD" => "log_rights",
				"ADD_CALLBACK" => array("CCalendarLiveFeed", "AddComment_Calendar"),
				"UPDATE_CALLBACK" => array("CSocNetLogTools", "UpdateComment_Forum"),
				"DELETE_CALLBACK" => array("CSocNetLogTools", "DeleteComment_Forum"),
				"CLASS_FORMAT" => "CSocNetLogTools",
				"METHOD_FORMAT" => "FormatComment_Forum",
				"METHOD_GET_URL" => array("CCalendarLiveFeed", "GetCommentUrl"),
				"RATING_TYPE_ID" => "FORUM_POST"
			)
		)
	);
}