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/core/queue/queue/ |
Upload File : |
<?php namespace Bitrix\Calendar\Core\Queue\Queue; class QueueRegistry { public const QUEUE_LIST = [ 'EventDelayedSync' => 1, 'UpdateDepartmentStructure' => 2, 'UpdateSocialGroupStructure' => 3, 'DelayedSyncSection' => 4, 'DelayedSyncConnection' => 5, 'EventsWithEntityAttendeesFind' => 6, 'EventAttendeesUpdate' => 7, 'SendingEmailNotification' => 8, 'Example' => 99999, ]; public const ROUTING_TO_QUEUES = [ 'calendar:update_meeting_status' => [ 'EventDelayedSync' ], 'calendar:find_events_with_entity_attendees' =>[ 'EventsWithEntityAttendeesFind' ], 'calendar:update_event_attendees' => [ 'EventAttendeesUpdate' ], 'calendar:sending_email_notification' => [ 'SendingEmailNotification' ], ]; /** * @param int $id * * @return string|null */ public static function getNameById(int $id): ?string { if ($key = array_search($id, self::QUEUE_LIST)) { return $key; } return null; } /** * @param string $name * * @return int|null */ public static function getIdByName(string $name): ?int { return self::QUEUE_LIST[$name] ?? null; } }