Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
log.php
1<?
7
11
12class Log
13{
14 const EVENT_ID_CALENDAR = 'calendar';
15
22 public static function getEventIdList()
23 {
24 return array(
25 self::EVENT_ID_CALENDAR
26 );
27 }
28
35 public static function onIndexGetContent(Event $event)
36 {
37 $result = new EventResult(
38 EventResult::UNDEFINED,
39 array(),
40 'calendar'
41 );
42
43 $eventId = $event->getParameter('eventId');
44 $sourceId = $event->getParameter('sourceId');
45
46 if (!in_array($eventId, self::getEventIdList()))
47 {
48 return $result;
49 }
50
51 $result = new EventResult(
52 EventResult::SUCCESS,
53 array(
54 'content' => intval($sourceId) > 0 ? \CCalendarEvent::getSearchIndexContent($sourceId) : "",
55 ),
56 'calendar'
57 );
58
59 return $result;
60 }
61
62
63}
static onIndexGetContent(Event $event)
Definition log.php:35
getParameter($key)
Definition event.php:80