15 $className = get_called_class();
16 if (isset(self::$dictionary[$className]))
18 unset(self::$dictionary[$className]);
20 if (isset(self::$reverseDictionary[$className]))
22 unset(self::$reverseDictionary[$className]);
29 $className = get_called_class();
30 if (!isset(self::$dictionary[$className]))
32 self::$dictionary[$className] = [];
38 foreach ($idList as $id)
40 if (isset(self::$dictionary[$className][$id]))
42 if (self::$dictionary[$className][$id] !==
false)
44 $result[$id] = self::$dictionary[$className][$id];
54 if (!empty($needList))
56 $list = Type\HighloadBlock::getXmlIdById($hlblockId, $needList);
57 foreach ($needList as $id)
59 self::$dictionary[$className][$id] = $list[$id] ??
false;
60 if (self::$dictionary[$className][$id] !==
false)
62 $result[$id] = self::$dictionary[$className][$id];
82 $className = get_called_class();
83 if (!isset(self::$reverseDictionary[$className]))
85 self::$reverseDictionary[$className] = [];
91 foreach ($xmlIdList as $xmlId)
93 if (isset(self::$reverseDictionary[$className][$xmlId]))
95 if (self::$reverseDictionary[$className][$xmlId] !==
false)
97 $result[$xmlId] = self::$reverseDictionary[$className][$xmlId];
102 $needList[] = $xmlId;
107 if (!empty($needList))
109 $list = Type\HighloadBlock::getIdByXmlId($hlblockId, $needList);
110 foreach ($needList as $xmlId)
112 self::$reverseDictionary[$className][$xmlId] = $list[$xmlId] ??
false;
113 if (self::$reverseDictionary[$className][$xmlId] !==
false)
115 $result[$xmlId] = self::$reverseDictionary[$className][$xmlId];