lib/ezutils/classes/ezini.php
protected static function selectOverrideScope( $scope, $identifier, $dir, $default )
    {
        if ( $scope !== null )
        {
            $def = self::defaultOverrideDirs();
            if ( isset( $def[$scope] ) )
                return $scope;
            eZDebug::writeWarning( "Undefined override dir scope: '$scope' with dir: '$dir'", __METHOD__ );
        }
        if ( $identifier === 'siteaccess' )
            return 'siteaccess';
        else if ( $identifier && strpos($identifier, 'extension:') === 0 )
            return 'extension';
        else if ( strpos($dir, 'siteaccess') !== false )
            return 'siteaccess';
        else if ( strpos($dir, 'extension') !== false )
            return 'extension';

        eZDebug::writeStrict( "Could not figgure out INI scope for \$identifier: '$identifier' with \$dir: '$dir', falling back to '$default'", __METHOD__ );
        return $default;
    }
protected static function selectOverrideScope( $scope, $identifier, $dir, $default )
    {
        if ( $scope !== null )
        {
            $def = self::defaultOverrideDirs();
            if ( isset( $def[$scope] ) )
                return $scope;
            eZDebug::writeWarning( "Undefined override dir scope: '$scope' with dir: '$dir'", __METHOD__ );
        }
        if ( $identifier === 'siteaccess' )
            return 'siteaccess';
        else if ( $identifier && strpos($identifier, 'extension:') === 0 )
            return 'extension';
        else if ( strpos($dir, 'siteaccess') !== false )
            return 'siteaccess';
        else if ( strpos($dir, 'extension') !== false )
            return 'extension';

        eZDebug::writeStrict( "Could not figgure out INI scope for \$identifier: '$identifier' with \$dir: '$dir', falling back to '$default'", __METHOD__ );
        return $default;
    }
protected static function selectOverrideScope ( $ scope , $ identifier , $ dir , $ default ) { if ( $ scope !== null ) { $ def = self :: defaultOverrideDirs ( ) ; if ( isset ( $ def [ $ scope ] ) ) return $ scope ; eZDebug :: writeWarning ( "Undefined override dir scope: '$scope' with dir: '$dir'" , __METHOD__ ) ; } if ( $ identifier === 'siteaccess' ) return 'siteaccess' ; else if ( $ identifier && strpos ( $ identifier , 'extension:' ) === 0 ) return 'extension' ; else if ( strpos ( $ dir , 'siteaccess' ) !== false ) return 'siteaccess' ; else if ( strpos ( $ dir , 'extension' ) !== false ) return 'extension' ; eZDebug :: writeStrict ( "Could not figgure out INI scope for \$identifier: '$identifier' with \$dir: '$dir', falling back to '$default'" , __METHOD__ ) ; return $ default ; }
Function to handle bc with code from pre 4.4 that does not know about scopes

@since 4.4
@param string|null $scope
@param string $identifier
@param string $dir
@param string $default
@return string
Function to handle bc with code from pre 4 . 4 that does not know about scopes