src/PEAR/Autoloader.php
function addAutoload($method, $classname = null)
    {
        if (is_array($method)) {
            array_walk($method, create_function('$a,&$b', '$b = strtolower($b);'));
            $this->_autoload_map = array_merge($this->_autoload_map, $method);
        } else {
            $this->_autoload_map[strtolower($method)] = $classname;
        }
    }
function addAutoload($method, $classname = null)
    {
        if (is_array($method)) {
            array_walk($method, create_function('$a,&$b', '$b = strtolower($b);'));
            $this->_autoload_map = array_merge($this->_autoload_map, $method);
        } else {
            $this->_autoload_map[strtolower($method)] = $classname;
        }
    }
Add one or more autoload entries.

@param string $method     which method to autoload

@param string $classname  (optional) which class to find the method in.
If the $method parameter is an array, this
parameter may be omitted (and will be ignored
if not), and the $method parameter will be
treated as an associative array with method
names as keys and class names as values.

@return void

@access public