本文整理汇总了PHP中eZExtension::reorderExtensions方法的典型用法代码示例。如果您正苦于以下问题:PHP eZExtension::reorderExtensions方法的具体用法?PHP eZExtension::reorderExtensions怎么用?PHP eZExtension::reorderExtensions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZExtension
的用法示例。
在下文中一共展示了eZExtension::reorderExtensions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
eZSys::serverPort(),
eZSys::indexFile() );
$access = eZSiteAccess::change( $access );
eZDebugSetting::writeDebug( 'kernel-siteaccess', $access, 'current siteaccess' );
// Check for siteaccess extension
eZExtension::activateExtensions( 'access' );
// Siteaccess extension check end
// Now that all extensions are activated and siteaccess has been changed, reset
// all eZINI instances as they may not take into account siteaccess specific settings.
eZINI::resetAllInstances( false );
// Reload Extenion ordering to reorder eZINI Global Override Dirs.
// @TODO : Améliorer la gestion globale (éviter des appels multiples !!!)
eZExtension::reorderExtensions();
ezpEvent::getInstance()->registerEventListeners();
// Be able to do general events early in process
ezpEvent::getInstance()->notify( 'request/preinput', array( $uri ) );
$mobileDeviceDetect = new ezpMobileDeviceDetect( ezpMobileDeviceDetectFilter::getFilter() );
if( $mobileDeviceDetect->isEnabled() )
{
$mobileDeviceDetect->process();
if ( $mobileDeviceDetect->isMobileDevice() )
$mobileDeviceDetect->redirect();
}
示例2: initialize
function initialize()
{
if( ob_get_length() != 0 )
ob_end_clean();
$debugINI = eZINI::instance( 'debug.ini' );
eZDebugSetting::setDebugINI( $debugINI );
// Initialize text codec settings
$this->updateTextCodecSettings();
// Initialize debug settings
$this->updateDebugSettings( $this->UseDebugOutput );
// Set the different permissions/settings.
$ini = eZINI::instance();
$iniFilePermission = $ini->variable( 'FileSettings', 'StorageFilePermissions' );
$iniDirPermission = $ini->variable( 'FileSettings', 'StorageDirPermissions' );
$iniVarDirectory = eZSys::cacheDirectory() ;
eZCodePage::setPermissionSetting( array( 'file_permission' => octdec( $iniFilePermission ),
'dir_permission' => octdec( $iniDirPermission ),
'var_directory' => $iniVarDirectory ) );
eZExecution::addCleanupHandler( 'eZDBCleanup' );
eZExecution::addFatalErrorHandler( 'eZFatalError' );
eZDebug::setHandleType( eZDebug::HANDLE_FROM_PHP );
if ( $this->UseExtensions )
{
// Check for extension
eZExtension::activateExtensions( 'default' );
// Extension check end
}
else if ( !$this->isQuiet() )
{
$cli = eZCLI::instance();
$cli->output( "Notice: This script uses 'use-extensions' => false, meaning extension settings are not loaded!" );
}
$siteaccess = $this->SiteAccess;
if ( $siteaccess )
{
$access = array( 'name' => $siteaccess,
'type' => eZSiteAccess::TYPE_STATIC );
}
else
{
$ini = eZINI::instance();
$siteaccess = $ini->variable( 'SiteSettings', 'DefaultAccess' );
$access = array( 'name' => $siteaccess,
'type' => eZSiteAccess::TYPE_DEFAULT );
}
$access = eZSiteAccess::change( $access );
if ( $this->UseExtensions )
{
// Check for siteaccess extension
eZExtension::activateExtensions( 'access' );
// Extension check end
}
// Now that all extensions are activated and siteaccess has been changed, reset
// all eZINI instances as they may not take into account siteaccess specific settings.
eZINI::resetAllInstances( false );
// Reload Extenion ordering to reorder eZINI Global Override Dirs.
// @TODO : Améliorer la gestion globale (éviter des appels multiples !!!)
eZExtension::reorderExtensions();
// Set the global setting which is read by the session lib
$GLOBALS['eZSiteBasics']['session-required'] = $this->UseSession;
if ( $this->UseSession )
{
$db = eZDB::instance();
if ( $db->isConnected() )
{
eZSession::start();
}
else
{
$this->IsInitialized = false;
$this->InitializationErrorMessage = 'database error: ' . $db->errorMessage();
return;
}
}
if ( $this->User )
{
$userLogin = $this->User['login'];
$userPassword = $this->User['password'];
if ( $userLogin and $userPassword )
{
$userID = eZUser::loginUser( $userLogin, $userPassword );
if ( !$userID )
{
$cli = eZCLI::instance();
if ( $this->isLoud() )
//.........这里部分代码省略.........