File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/calendar/lib/core/queue/queue/queueregistry.php
Back
<?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, 'Example' => 99999, ]; public const ROUTING_TO_QUEUES = [ 'calendar:update_meeting_status' => [ 'EventDelayedSync' ], 'calendar:find_events_with_entity_attendees' =>[ 'EventsWithEntityAttendeesFind' ], 'calendar:update_event_attendees' => [ 'EventAttendeesUpdate' ], ]; /** * @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; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings