本文整理匯總了PHP中eZSiteAccess::reInitialise方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZSiteAccess::reInitialise方法的具體用法?PHP eZSiteAccess::reInitialise怎麽用?PHP eZSiteAccess::reInitialise使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eZSiteAccess
的用法示例。
在下文中一共展示了eZSiteAccess::reInitialise方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array_intersect
// The file settings/override/site.ini.append.php is updated like this:
// - take the existing list of extensions from site.ini.append.php (to preserve their order)
// - remove from the list the extensions that the user unchecked in the admin interface
// - add to the list the extensions checked by the user in the admin interface, but to the end of the list
$intersection = array_intersect( $selectedExtensions, $selectedExtensionArray );
$difference = array_diff( $selectedExtensionArray, $selectedExtensions );
$toSave = array_merge( $intersection, $difference );
$toSave = array_unique( $toSave );
// open settings/override/site.ini.append[.php] for writing
$writeSiteINI = eZINI::instance( 'site.ini.append', 'settings/override', null, null, false, true );
$writeSiteINI->setVariable( "ExtensionSettings", "ActiveExtensions", $toSave );
$writeSiteINI->save( 'site.ini.append', '.php', false, false );
eZCache::clearByTag( 'ini' );
eZSiteAccess::reInitialise();
$ini = eZINI::instance( 'module.ini' );
$currentModules = $ini->variable( 'ModuleSettings', 'ModuleList' );
if ( $currentModules != $oldModules )
{
// ensure that evaluated policy wildcards in the user info cache
// will be up to date with the currently activated modules
eZCache::clearByID( 'user_info_cache' );
}
updateAutoload( $tpl );
}
// open site.ini for reading (need to do it again to take into account the changes made to site.ini after clicking "Apply changes" button above
$siteINI = eZINI::instance();