1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
queuefactory.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Core\Queue\Queue;
4
6{
7 private static array $cache = [];
8
9 public function getById(int $queueId): ?Queue
10 {
11 if (!array_key_exists($queueId, self::$cache))
12 {
13 if ($queueName = QueueRegistry::getNameById($queueId))
14 {
15 self::$cache[$queueId] = new Queue($queueId, $queueName);
16 }
17 else
18 {
19 self::$cache[$queueId] = null;
20 }
21 }
22
23 return self::$cache[$queueId];
24 }
25
26 public function getByName(string $queueName): ?Queue
27 {
28 if ($queueId = QueueRegistry::getIdByName($queueName))
29 {
30 if (!array_key_exists($queueId, self::$cache))
31 {
32 self::$cache[$queueId] = new Queue($queueId, $queueName);
33 }
34 }
35 else
36 {
37 self::$cache[$queueId] = null;
38 }
39
40 return self::$cache[$queueId];
41 }
42}
getByName(string $queueName)
Определения queuefactory.php:26
static getIdByName(string $name)
Определения queueregistry.php:55
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804