## Zend_Controller_Dispatcher

Description

Implements interfaces:

- Zend_Controller_Dispatcher_Interface

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Controller/Dispatcher.php (line 43)

Variable Summary
string $_directory
Method Summary
boolean|Zend_Controller_Dispatcher_Token dispatch (Zend_Controller_Dispatcher_Token $action)
string formatActionName (string $unformatted)
string formatControllerName (string $unformatted)
unknown isDispatchable (Zend_Controller_Dispatcher_Token $action)
void setControllerDirectory (string $dir)
boolean|Zend_Controller_Dispatcher_Token _dispatch (Zend_Controller_Dispatcher_Token $action, boolean $performDispatch)
string _formatName (string $unformatted)
Variables
string $_directory = null (line 49)

Directory where Zend_Controller_Action files are stored.

- access: protected

Methods
dispatch (line 134)

Dispatch to a controller/action

- access: public

boolean|Zend_Controller_Dispatcher_Token dispatch (Zend_Controller_Dispatcher_Token $action)

- Zend_Controller_Dispatcher_Token $action

Implementation of:

Zend_Controller_Dispatcher_Interface::dispatch()
  Dispatches a Zend_Controller_Dispatcher_Token object to a controller/action. If the action requests a forward to another action, a new Zend_Controller_Dispatcher_Token will be returned.

formatActionName (line 76)

Formats a string into an action name. This is used to take a raw action name, such as one that would be packaged inside a Zend_Controller_Dispatcher_Token object, and reformat into a proper method name that would be found inside a class extending Zend_Controller_Action.

- access: public

string formatActionName (string $unformatted)

- string $unformatted

Implementation of:

Zend_Controller_Dispatcher_Interface::formatActionName()
  Formats a string into an action name. This is used to take a raw action name, such as one that would be packaged inside a Zend_Controller_Dispatcher_Token object, and reformat into a proper method name that would be found inside a class extending Zend_Controller_Action.

formatControllerName (line 61)

Formats a string into a controller name. This is used to take a raw controller name, such as one that would be packaged inside a Zend_Controller_Dispatcher_Token object, and reformat it to a proper class name that a class extending Zend_Controller_Action would use.

- access: public

string formatControllerName (string $unformatted)

- string $unformatted

Implementation of:

Zend_Controller_Dispatcher_Interface::formatControllerName()
  Formats a string into a controller name. This is used to take a raw controller name, such as one that would be packaged inside a Zend_Controller_Dispatcher_Token object, and reformat it to a proper class name that a class extending Zend_Controller_Action would use.

isDispatchable (line 122)

Returns TRUE if the Zend_Controller_Dispatcher_Token object can be dispatched to a controller.

This only verifies that the Zend_Controller_Action can be dispatched and does not guarantee that the action will be accepted by the Zend_Controller_Action.

- access: public

unknown isDispatchable (Zend_Controller_Dispatcher_Token $action)

- Zend_Controller_Dispatcher_Token $action

Implementation of:

Zend_Controller_Dispatcher_Interface::isDispatchable()
  Returns TRUE if an action can be dispatched, or FALSE otherwise.

setControllerDirectory (line 104)

Sets the directory where the Zend_Controller_Action class files are stored.

- access: public

void setControllerDirectory (string $dir)

- string $dir

_dispatch (line 154)

If $performDispatch is FALSE, this method will check if a controller file exists. This still doesn't necessarily mean that it can be dispatched in the stricted sense, as file may not contain the controller class or the controller may reject the action.

If $performDispatch is TRUE, then this method will actually instantiate the controller and call its action. Calling the action is done by passing a Zend_Controller_Dispatcher_Token to the controller's constructor.

- access: protected

boolean|Zend_Controller_Dispatcher_Token _dispatch (Zend_Controller_Dispatcher_Token $action, boolean $performDispatch)

- Zend_Controller_Dispatcher_Token $action
- boolean $performDispatch

_formatName (line 91)

Formats a string from a URI into a PHP-friendly name. Replaces words separated by "-", "_", or "." with camelCaps and removes any characters that are not alphanumeric.

- access: protected

string _formatName (string $unformatted)

- string $unformatted

Documentation generated on Tue, 11 Jul 2006 12:16:55 -0500 by phpDocumentor 1.3.0RC6