public static function release($uId)
    {
        // get autoloader setup by uid
        $configuration = self::$autoloader[$uId];

        // assume op will fail
        $result = false;

        // get currently configured autoloader
        $registeredAutoloader = self::getSplAutoloader();

        // check if autoloader is registered (not uid - real check)
        if ($registeredAutoloader && self::isRegistered(
            $configuration->isClass(),
            $configuration->getClass(),
            $configuration->getMethod(),
            $registeredAutoloader
        )) {
            // construct ...
            if ($configuration->isClass()) {
                $loader = array($configuration->getClass(), $configuration->getMethod());
            } else {
                $loader = $configuration->getMethod();
            }

            // unregister autoloader
            $result = spl_autoload_unregister($loader);
        }

        // remove configuration
        unset(self::$autoloader[$uId]);

        // return result
        return $result;
    }
public static function release($uId)
    {
        // get autoloader setup by uid
        $configuration = self::$autoloader[$uId];

        // assume op will fail
        $result = false;

        // get currently configured autoloader
        $registeredAutoloader = self::getSplAutoloader();

        // check if autoloader is registered (not uid - real check)
        if ($registeredAutoloader && self::isRegistered(
            $configuration->isClass(),
            $configuration->getClass(),
            $configuration->getMethod(),
            $registeredAutoloader
        )) {
            // construct ...
            if ($configuration->isClass()) {
                $loader = array($configuration->getClass(), $configuration->getMethod());
            } else {
                $loader = $configuration->getMethod();
            }

            // unregister autoloader
            $result = spl_autoload_unregister($loader);
        }

        // remove configuration
        unset(self::$autoloader[$uId]);

        // return result
        return $result;
    }
public static function release ( $ uId ) { // get autoloader setup by uid $ configuration = self :: $ autoloader [ $ uId ] ; // assume op will fail $ result = false ; // get currently configured autoloader $ registeredAutoloader = self :: getSplAutoloader ( ) ; // check if autoloader is registered (not uid - real check) if ( $ registeredAutoloader && self :: isRegistered ( $ configuration -> isClass ( ) , $ configuration -> getClass ( ) , $ configuration -> getMethod ( ) , $ registeredAutoloader ) ) { // construct ... if ( $ configuration -> isClass ( ) ) { $ loader = array ( $ configuration -> getClass ( ) , $ configuration -> getMethod ( ) ) ; } else { $ loader = $ configuration -> getMethod ( ) ; } // unregister autoloader $ result = spl_autoload_unregister ( $ loader ) ; } // remove configuration unset ( self :: $ autoloader [ $ uId ] ) ; // return result return $ result ; }
Releases a previous registered Autoloader

This method is intend to release a registered Autoloader by its unique-Id.

@param string $uId The unique-id used to identify the Autoloader which should be removed

@author Benjamin Carl <opensource@clickalicious.de>
@return bool true if Autoloader was released successfully, otherwise false
@access public
@static
Releases a previous registered Autoloader