public function registerAutoloadMap($map)
    {
        if (is_string($map)) {
            $location = $map;
            if ($this === ($map = $this->loadMapFromFile($location))) {
                return $this;
            }
        }

        if (!is_array($map)) {

            throw new Zend_Loader_Exception_InvalidArgumentException('Map file provided does not return a map');
        }

        $this->map = array_merge($this->map, $map);

        if (isset($location)) {
            $this->mapsLoaded[] = $location;
        }

        return $this;
    }
public function registerAutoloadMap($map)
    {
        if (is_string($map)) {
            $location = $map;
            if ($this === ($map = $this->loadMapFromFile($location))) {
                return $this;
            }
        }

        if (!is_array($map)) {

            throw new Zend_Loader_Exception_InvalidArgumentException('Map file provided does not return a map');
        }

        $this->map = array_merge($this->map, $map);

        if (isset($location)) {
            $this->mapsLoaded[] = $location;
        }

        return $this;
    }
public function registerAutoloadMap ( $ map ) { if ( is_string ( $ map ) ) { $ location = $ map ; if ( $ this === ( $ map = $ this -> loadMapFromFile ( $ location ) ) ) { return $ this ; } } if ( ! is_array ( $ map ) ) { throw new Zend_Loader_Exception_InvalidArgumentException ( 'Map file provided does not return a map' ) ; } $ this -> map = array_merge ( $ this -> map , $ map ) ; if ( isset ( $ location ) ) { $ this -> mapsLoaded [ ] = $ location ; } return $ this ; }
Register an autoload map

An autoload map may be either an associative array, or a file returning
an associative array.

An autoload map should be an associative array containing
classname/file pairs.

@param  string|array $location
@return Zend_Loader_ClassMapAutoloader
Register an autoload map