Beispiel #1
0
            if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
                $varDir = $siteINI->variable('FileSettings', 'VarDir');
                $cacheDir = eZDir::path(array($varDir, $cacheDir));
            }
        }
    } else {
        if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
            $varDir = $siteINI->variable('FileSettings', 'VarDir');
            $cacheDir = $ini->variable('FileSettings', 'CacheDir');
            $cacheDir = eZDir::path(array($varDir, $cacheDir));
        } else {
            $cacheDir = eZSys::cacheDirectory();
        }
    }
    $compiledTemplateDir = $cacheDir . "/template/compiled";
    eZDir::unlinkWildcard($compiledTemplateDir . "/", "*pagelayout*.*");
    // Expire template block cache
    eZContentCacheManager::clearTemplateBlockCacheIfNeeded(false);
}
$availableMenuArray = $menuINI->variable('MenuSettings', 'AvailableMenuArray');
$menuArray = array();
foreach ($availableMenuArray as $menuType) {
    $menuArray[] = array('type' => $menuType, 'settings' => $menuINI->group($menuType));
}
$tpl->setVariable('available_menu_array', $menuArray);
$tpl->setVariable('current_menu', $menuINI->variable('SelectedMenu', 'CurrentMenu'));
$tpl->setVariable('siteaccess_list', $siteAccessList);
$tpl->setVariable('current_siteaccess', $siteAccess);
$Result = array();
$Result['content'] = $tpl->fetch("design:visual/menuconfig.tpl");
$Result['path'] = array(array('url' => false, 'text' => ezpI18n::tr('design/standard/menuconfig', 'Menu management')));
 function storeObjectAttribute($attribute)
 {
     $ini = eZINI::instance();
     // Delete compiled template
     $siteINI = eZINI::instance();
     if ($siteINI->hasVariable('FileSettings', 'CacheDir')) {
         $cacheDir = $siteINI->variable('FileSettings', 'CacheDir');
         if ($cacheDir[0] == "/") {
             $cacheDir = eZDir::path(array($cacheDir));
         } else {
             if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
                 $varDir = $siteINI->variable('FileSettings', 'VarDir');
                 $cacheDir = eZDir::path(array($varDir, $cacheDir));
             }
         }
     } else {
         if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
             $varDir = $siteINI->variable('FileSettings', 'VarDir');
             $cacheDir = $ini->variable('FileSettings', 'CacheDir');
             $cacheDir = eZDir::path(array($varDir, $cacheDir));
         } else {
             $cacheDir = eZSys::cacheDirectory();
         }
     }
     $compiledTemplateDir = $cacheDir . "/template/compiled";
     eZDir::unlinkWildcard($compiledTemplateDir . "/", "*pagelayout*.*");
     // Expire template block cache
     eZContentCacheManager::clearTemplateBlockCacheIfNeeded(false);
 }
 static function clearContentCacheIfNeeded($objectID, $versionNum = true, $additionalNodeList = false)
 {
     eZDebug::accumulatorStart('check_cache', '', 'Check cache');
     eZContentCacheManager::clearObjectViewCacheIfNeeded($objectID, $versionNum, $additionalNodeList);
     eZContentCacheManager::clearTemplateBlockCacheIfNeeded($objectID);
     // Clear cached path strings of content SSL zones.
     eZSSLZone::clearCacheIfNeeded();
     eZDebug::accumulatorStop('check_cache');
     return true;
 }