private static function isRegistered($isClass, $class, $method, $autoloader = null)
    {
        // get autoloader if not received via parameter
        if (!$autoloader) {
            $autoloader = self::getSplAutoloader();
        }

        // construct lookup-string
        if ($isClass) {
            $needle = array($class, $method);
        } else {
            $needle = $method;
        }

        // return status
        return in_array($needle, $autoloader);
    }
private static function isRegistered($isClass, $class, $method, $autoloader = null)
    {
        // get autoloader if not received via parameter
        if (!$autoloader) {
            $autoloader = self::getSplAutoloader();
        }

        // construct lookup-string
        if ($isClass) {
            $needle = array($class, $method);
        } else {
            $needle = $method;
        }

        // return status
        return in_array($needle, $autoloader);
    }
private static function isRegistered ( $ isClass , $ class , $ method , $ autoloader = null ) { // get autoloader if not received via parameter if ( ! $ autoloader ) { $ autoloader = self :: getSplAutoloader ( ) ; } // construct lookup-string if ( $ isClass ) { $ needle = array ( $ class , $ method ) ; } else { $ needle = $ method ; } // return status return in_array ( $ needle , $ autoloader ) ; }
Checks if a autoloader is registered

This method is intend to check if a autoloader is registered.

@param bool $isClass    True if Autoloader-Method is part of a class
@param string  $class      The name of the class containing the Autoloader-Method
@param string  $method     The name of the Autolaoder-Method (Function)
@param mixed   $autoloader A already retrieved list of currently registered SPL-Autoloaders

@author Benjamin Carl <opensource@clickalicious.de>
@return bool True if autoloader is regsitered, otherwise false
@access private
@static
Checks if a autoloader is registered