lib/ezutils/classes/ezextension.php
static function activateExtensions( $extensionType = 'default', eZINI $siteINI = null )
    {
        if ( $siteINI === null )
        {
            $siteINI = eZINI::instance();
        }

        if ( $extensionType === false )
        {
            eZDebug::writeStrict( "Setting parameter \$extensionType to false is deprecated as of 4.4, see doc/bc/4.4!", __METHOD__ );
        }

        $extensionDirectory = self::baseDirectory();
        $activeExtensions   = self::activeExtensions( $extensionType, $siteINI );
        $hasExtensions = false;
        foreach ( $activeExtensions as $activeExtension )
        {
            $extensionSettingsPath = $extensionDirectory . '/' . $activeExtension . '/settings';

            if ( $extensionType === 'access' )
                $siteINI->prependOverrideDir( $extensionSettingsPath, true, 'extension:' . $activeExtension, 'sa-extension' );
            else
                $siteINI->prependOverrideDir( $extensionSettingsPath, true, 'extension:' . $activeExtension, 'extension' );

            if ( isset( $GLOBALS['eZCurrentAccess'] ) )
                self::prependSiteAccess( $activeExtension, $GLOBALS['eZCurrentAccess']['name'], $siteINI );

            $hasExtensions = true;
        }
        if ( $hasExtensions )
            $siteINI->load();
    }
static function activateExtensions( $extensionType = 'default', eZINI $siteINI = null )
    {
        if ( $siteINI === null )
        {
            $siteINI = eZINI::instance();
        }

        if ( $extensionType === false )
        {
            eZDebug::writeStrict( "Setting parameter \$extensionType to false is deprecated as of 4.4, see doc/bc/4.4!", __METHOD__ );
        }

        $extensionDirectory = self::baseDirectory();
        $activeExtensions   = self::activeExtensions( $extensionType, $siteINI );
        $hasExtensions = false;
        foreach ( $activeExtensions as $activeExtension )
        {
            $extensionSettingsPath = $extensionDirectory . '/' . $activeExtension . '/settings';

            if ( $extensionType === 'access' )
                $siteINI->prependOverrideDir( $extensionSettingsPath, true, 'extension:' . $activeExtension, 'sa-extension' );
            else
                $siteINI->prependOverrideDir( $extensionSettingsPath, true, 'extension:' . $activeExtension, 'extension' );

            if ( isset( $GLOBALS['eZCurrentAccess'] ) )
                self::prependSiteAccess( $activeExtension, $GLOBALS['eZCurrentAccess']['name'], $siteINI );

            $hasExtensions = true;
        }
        if ( $hasExtensions )
            $siteINI->load();
    }
static function activateExtensions ( $ extensionType = 'default' , eZINI $ siteINI = null ) { if ( $ siteINI === null ) { $ siteINI = eZINI :: instance ( ) ; } if ( $ extensionType === false ) { eZDebug :: writeStrict ( "Setting parameter \$extensionType to false is deprecated as of 4.4, see doc/bc/4.4!" , __METHOD__ ) ; } $ extensionDirectory = self :: baseDirectory ( ) ; $ activeExtensions = self :: activeExtensions ( $ extensionType , $ siteINI ) ; $ hasExtensions = false ; foreach ( $ activeExtensions as $ activeExtension ) { $ extensionSettingsPath = $ extensionDirectory . '/' . $ activeExtension . '/settings' ; if ( $ extensionType === 'access' ) $ siteINI -> prependOverrideDir ( $ extensionSettingsPath , true , 'extension:' . $ activeExtension , 'sa-extension' ) ; else $ siteINI -> prependOverrideDir ( $ extensionSettingsPath , true , 'extension:' . $ activeExtension , 'extension' ) ; if ( isset ( $ GLOBALS [ 'eZCurrentAccess' ] ) ) self :: prependSiteAccess ( $ activeExtension , $ GLOBALS [ 'eZCurrentAccess' ] [ 'name' ] , $ siteINI ) ; $ hasExtensions = true ; } if ( $ hasExtensions ) $ siteINI -> load ( ) ; }
Will make sure that all extensions that has settings directories
are added to the eZINI override list.

@param string $extensionType See {@link eZExtension::activeExtensions()}, value of false is deprecated as of 4.4
@param eZINI|null $siteINI Optional parameter to be able to only do change on specific instance of site.ini
Will make sure that all extensions that has settings directories are added to the eZINI override list .