1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
log.php
См. документацию.
1<?
5
6namespace Bitrix\Calendar\Integration\SocialNetwork;
7
8use Bitrix\Main\Event;
9use Bitrix\Main\EventResult;
10use Bitrix\Socialnetwork\Item\LogIndex;
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' => (int)$sourceId > 0 ? \CCalendarEvent::getSearchIndexContent($sourceId) : "",
55 ),
56 'calendar'
57 );
58
59 return $result;
60 }
61
62
63}
static onIndexGetContent(Event $event)
Определения log.php:35
Определения 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