Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
calendarevent.php
1<?php
9
13
15{
16 public static function onViewEvent(Event $event)
17 {
18 $result = new EventResult(
19 EventResult::UNDEFINED,
20 array(),
21 'socialnetwork'
22 );
23
24 $calendarEventId = $event->getParameter('eventId');
25
26 if (intval($calendarEventId) <= 0)
27 {
28 return $result;
29 }
30
31 if ($liveFeedEntity = Provider::init(array(
32 'ENTITY_TYPE' => Provider::DATA_ENTITY_TYPE_CALENDAR_EVENT,
33 'ENTITY_ID' => $calendarEventId
34 )))
35 {
36 $liveFeedEntity->setContentView();
37 }
38
39 $result = new EventResult(
40 EventResult::SUCCESS,
41 array(),
42 'socialnetwork'
43 );
44
45 return $result;
46 }
47}
48?>
getParameter($key)
Definition event.php:80