7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @package Zend_Application
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @version $Id: Autoloader.php 16541 2009-07-07 06:59:03Z bkarwin $
20 * @license http://framework.zend.com/license/new-bsd New BSD License
23 /** Zend_Loader_Autoloader_Resource */
24 require_once 'Zend/Loader/Autoloader/Resource.php';
27 * Resource loader for application module classes
29 * @uses Zend_Loader_Autoloader_Resource
30 * @package Zend_Application
32 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
33 * @license http://framework.zend.com/license/new-bsd New BSD License
35 class Zend_Application_Module_Autoloader
extends Zend_Loader_Autoloader_Resource
40 * @param array|Zend_Config $options
43 public function __construct($options)
45 parent
::__construct($options);
46 $this->initDefaultResourceTypes();
50 * Initialize default resource types for module resource classes
54 public function initDefaultResourceTypes()
56 $basePath = $this->getBasePath();
57 $this->addResourceTypes(array(
59 'namespace' => 'Model_DbTable',
60 'path' => 'models/DbTable',
63 'namespace' => 'Form',
67 'namespace' => 'Model',
71 'namespace' => 'Plugin',
75 'namespace' => 'Service',
78 'viewhelper' => array(
79 'namespace' => 'View_Helper',
80 'path' => 'views/helpers',
82 'viewfilter' => array(
83 'namespace' => 'View_Filter',
84 'path' => 'views/filters',
87 $this->setDefaultResourceType('model');