src/Zend/Loader/Autoloader/Resource.php
public function addResourceTypes(array $types)
    {
        foreach ($types as $type => $spec) {
            if (!is_array($spec)) {

                throw new Zend_Loader_Exception('addResourceTypes() expects an array of arrays');
            }
            if (!isset($spec['path'])) {

                throw new Zend_Loader_Exception('addResourceTypes() expects each array to include a paths element');
            }
            $paths  = $spec['path'];
            $namespace = null;
            if (isset($spec['namespace'])) {
                $namespace = $spec['namespace'];
            }
            $this->addResourceType($type, $paths, $namespace);
        }
        return $this;
    }
public function addResourceTypes(array $types)
    {
        foreach ($types as $type => $spec) {
            if (!is_array($spec)) {

                throw new Zend_Loader_Exception('addResourceTypes() expects an array of arrays');
            }
            if (!isset($spec['path'])) {

                throw new Zend_Loader_Exception('addResourceTypes() expects each array to include a paths element');
            }
            $paths  = $spec['path'];
            $namespace = null;
            if (isset($spec['namespace'])) {
                $namespace = $spec['namespace'];
            }
            $this->addResourceType($type, $paths, $namespace);
        }
        return $this;
    }
public function addResourceTypes ( array $ types ) { foreach ( $ types as $ type => $ spec ) { if ( ! is_array ( $ spec ) ) { throw new Zend_Loader_Exception ( 'addResourceTypes() expects an array of arrays' ) ; } if ( ! isset ( $ spec [ 'path' ] ) ) { throw new Zend_Loader_Exception ( 'addResourceTypes() expects each array to include a paths element' ) ; } $ paths = $ spec [ 'path' ] ; $ namespace = null ; if ( isset ( $ spec [ 'namespace' ] ) ) { $ namespace = $ spec [ 'namespace' ] ; } $ this -> addResourceType ( $ type , $ paths , $ namespace ) ; } return $ this ; }
Add multiple resources at once

$types should be an associative array of resource type => specification
pairs. Each specification should be an associative array containing
minimally the 'path' key (specifying the path relative to the resource
base path) and optionally the 'namespace' key (indicating the subcomponent
namespace to append to the resource namespace).

As an example:
<code>
$loader->addResourceTypes(array(
'model' => array(
'path'      => 'models',
'namespace' => 'Model',
),
'form' => array(
'path'      => 'forms',
'namespace' => 'Form',
),
));
</code>

@param  array $types
@return Zend_Loader_Autoloader_Resource
Add multiple resources at once