1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
calendarevent.php
См. документацию.
1<?php
8namespace Bitrix\Socialnetwork\Integration\Calendar;
9
10use Bitrix\Socialnetwork\Livefeed\Provider;
11use Bitrix\Main\Event;
12use Bitrix\Main\EventResult;
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?>
Определения event.php:5
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$event
Определения prolog_after.php:141