Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/calendar/lib/integration/socialnetwork/ |
Upload File : |
<? /** * @access private */ namespace Bitrix\Calendar\Integration\SocialNetwork; use Bitrix\Main\Event; use Bitrix\Main\EventResult; use Bitrix\Socialnetwork\Item\LogIndex; class Log { const EVENT_ID_CALENDAR = 'calendar'; /** * Returns set EVENT_ID processed by handler to generate content for full index. * * @param void * @return array */ public static function getEventIdList() { return array( self::EVENT_ID_CALENDAR ); } /** * Returns content for LogIndex. * * @param Event $event Event from LogIndex::setIndex(). * @return EventResult */ public static function onIndexGetContent(Event $event) { $result = new EventResult( EventResult::UNDEFINED, array(), 'calendar' ); $eventId = $event->getParameter('eventId'); $sourceId = $event->getParameter('sourceId'); if (!in_array($eventId, self::getEventIdList())) { return $result; } $result = new EventResult( EventResult::SUCCESS, array( 'content' => (int)$sourceId > 0 ? \CCalendarEvent::getSearchIndexContent($sourceId) : "", ), 'calendar' ); return $result; } }