91 public static function get() : array
94 $cache = Cache::createInstance();
95 if ($cache->initCache(static::CACHE_TIME,
'sectionsIndexPage' . LANGUAGE_ID, static::CACHE_DIR))
97 $result = $cache->getVars();
99 elseif ($cache->startDataCache())
102 foreach ($dictionary as $el)
104 if (!empty($el[
'option']))
106 $data = Json::decode(base64_decode($el[
'option']));
109 $data = static::changeMessage($data);
110 $data[
'CODE'] = $data[
'SECTION_CODE'];
111 $result[$data[
'CODE']] = $data;
118 $result = static::changeMessage(static::DEFAULT_DATA);
121 $cache->endDataCache($result);