lib/ezutils/classes/ezextension.php
static function prependSiteAccess( $extension, $accessName = false, $ini = false, $globalDir = true, $identifier = null )
    {
        if ( !$accessName )
        {
            $accessName = $GLOBALS['eZCurrentAccess']['name'];
        }

        $extensionSettingsPath = eZExtension::baseDirectory() . '/' . $extension;

        if ( $identifier === null )
        {
            $identifier = "ext-siteaccess:$extension";
        }

        if ( !$ini instanceof eZINI )
        {
            $ini = eZINI::instance();
        }
        $ini->prependOverrideDir( $extensionSettingsPath . '/settings/siteaccess/' . $accessName, $globalDir, $identifier, 'siteaccess' );
    }
static function prependSiteAccess( $extension, $accessName = false, $ini = false, $globalDir = true, $identifier = null )
    {
        if ( !$accessName )
        {
            $accessName = $GLOBALS['eZCurrentAccess']['name'];
        }

        $extensionSettingsPath = eZExtension::baseDirectory() . '/' . $extension;

        if ( $identifier === null )
        {
            $identifier = "ext-siteaccess:$extension";
        }

        if ( !$ini instanceof eZINI )
        {
            $ini = eZINI::instance();
        }
        $ini->prependOverrideDir( $extensionSettingsPath . '/settings/siteaccess/' . $accessName, $globalDir, $identifier, 'siteaccess' );
    }
static function prependSiteAccess ( $ extension , $ accessName = false , $ ini = false , $ globalDir = true , $ identifier = null ) { if ( ! $ accessName ) { $ accessName = $ GLOBALS [ 'eZCurrentAccess' ] [ 'name' ] ; } $ extensionSettingsPath = eZExtension :: baseDirectory ( ) . '/' . $ extension ; if ( $ identifier === null ) { $ identifier = "ext-siteaccess:$extension" ; } if ( ! $ ini instanceof eZINI ) { $ ini = eZINI :: instance ( ) ; } $ ini -> prependOverrideDir ( $ extensionSettingsPath . '/settings/siteaccess/' . $ accessName , $ globalDir , $ identifier , 'siteaccess' ) ; }
Prepend siteaccess for specified extension

@param string $extension Name of extension (folder name)
@param string|false $accessName Optional access name, will use global if false
@param eZINI|false|null $ini
@param true $globalDir
@param string|false|null $identifier By setting to string "siteaccess" only one location is supported
(identifier makes eZINI overwrite earlier prepends with same key)
null(default) means "ext-siteaccess:$extension" is used to only have one pr extension
Prepend siteaccess for specified extension