Public Member Functions | Protected Attributes

Robo47_Application_Resource_AutoloaderMulti Class Reference

List of all members.

Public Member Functions

 getAutoloader ($name)
 Get Autoloader.
 getAutoloaders ()
 Get Autoloaders.
 init ()

Protected Attributes

 $_autoloaders = null

Detailed Description

Definition at line 34 of file AutoloaderMulti.php.


Member Function Documentation

Robo47_Application_Resource_AutoloaderMulti::getAutoloader ( name  ) 

Get Autoloader.

Parameters:
string $name
Returns:
Zend_Loader_Autoloader_Interface

Definition at line 65 of file AutoloaderMulti.php.

    {
        if (isset($this->_autoloaders[$name])) {
            return $this->_autoloaders[$name];
        } else {
            $message = 'Autoloader \'' . $name . '\' doesn\'t exist';
            throw new Robo47_Application_Resource_Exception($message);
        }
    }

Robo47_Application_Resource_AutoloaderMulti::getAutoloaders (  ) 

Get Autoloaders.

Returns:
array

Definition at line 80 of file AutoloaderMulti.php.

    {
        return $this->_autoloaders;
    }

Robo47_Application_Resource_AutoloaderMulti::init (  ) 

Definition at line 44 of file AutoloaderMulti.php.

    {
        if (!empty($this->_options)) {
            foreach ($this->_options as $name => $opts) {
                $resource = new Robo47_Application_Resource_Autoloader($opts);
                $resource->init();
                $this->_autoloaders[$name] = $resource->getAutoloader();
            }
        } else {
            $message = 'Empty options in resource ' .
                'Robo47_Application_Resource_AutoloaderMulti.';
            throw new Robo47_Application_Resource_Exception($message);
        }
    }


Member Data Documentation

Robo47_Application_Resource_AutoloaderMulti::$_autoloaders = null [protected]

Definition at line 42 of file AutoloaderMulti.php.


The documentation for this class was generated from the following file: