protected function _autoload($patterns, $className)
    {
        foreach ($patterns as $pattern) {
            if (!fnmatch($pattern, $className, FNM_NOESCAPE)) {
                continue;
            }
            $this->generateAndLoadClass($className);
            return true;

        }
        return false;
    }
protected function _autoload($patterns, $className)
    {
        foreach ($patterns as $pattern) {
            if (!fnmatch($pattern, $className, FNM_NOESCAPE)) {
                continue;
            }
            $this->generateAndLoadClass($className);
            return true;

        }
        return false;
    }
protected function _autoload ( $ patterns , $ className ) { foreach ( $ patterns as $ pattern ) { if ( ! fnmatch ( $ pattern , $ className , FNM_NOESCAPE ) ) { continue ; } $ this -> generateAndLoadClass ( $ className ) ; return true ; } return false ; }
Autoload class if matching any of given patterns

@param string[] $patterns
@param string $className

@return bool
Autoload class if matching any of given patterns