24 $cache = Cache::createInstance();
25 if ($cache->initCache(static::CACHE_TIME,
'all' . LANGUAGE_ID, static::CACHE_DIR))
27 $result = $cache->getVars();
29 elseif ($cache->startDataCache())
32 foreach ($placementDictionary as $event)
35 'id' => $event[
'code'],
36 'name' => !empty($event[
'name']) ? $event[
'name'] .
' (' . $event[
'code'] .
')' : $event[
'code'],
37 'descr' => !empty($event[
'descr']) ? $event[
'descr'] :
'',
41 $cache->endDataCache($result);