Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
log.php
1
<?
6
namespace
Bitrix\Calendar\Integration\SocialNetwork
;
7
8
use
Bitrix\Main\Event
;
9
use
Bitrix\Main\EventResult
;
10
use
Bitrix\Socialnetwork\Item\LogIndex
;
11
12
class
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
}
Bitrix\Calendar\Integration\SocialNetwork\Log
Definition
log.php:13
Bitrix\Calendar\Integration\SocialNetwork\Log\onIndexGetContent
static onIndexGetContent(Event $event)
Definition
log.php:35
Bitrix\Calendar\Integration\SocialNetwork\Log\EVENT_ID_CALENDAR
const EVENT_ID_CALENDAR
Definition
log.php:14
Bitrix\Calendar\Integration\SocialNetwork\Log\getEventIdList
static getEventIdList()
Definition
log.php:22
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\Event\getParameter
getParameter($key)
Definition
event.php:80
Bitrix\Main\EventResult
Definition
eventresult.php:5
Bitrix\Socialnetwork\Item\LogIndex
Definition
logindex.php:21
Bitrix\Calendar\Integration\SocialNetwork
modules
calendar
lib
integration
socialnetwork
log.php
Создано системой
1.10.0