Class Bluewater_Dispatcher

Overview

Front Controller Dispatch for Bluewater MVC Controllers.

Dispatcher translates URIs to determine which Controller::Method is to be used and what parameters are to be sent to that Method.

Based upon some ideas of Doug Hill http://www.phpaddiction.com/tags/axial/url-routing-with-php-part-one/

author: Walter Torres <walter@torres.ws>
version: $Revision: 1.0 $
PHPUnit: Not Defined
example: example not found

Located in /dispatcher.php (line 61)


	
    		        
Properties Summary
static object $_objCommand
Method Summary
static void Dispatch (void 0)
static void _load_controller (void 0)
void __construct (void 0)
void Internal ([string $_fakeURL = false])
Properties
static object $_objCommand (line 78)

Controller Command Object

since: 1.0
access: private
usedby: Bluewater_Dispatcher::Internal()
usedby: Bluewater_Dispatcher::Dispatch()
usedby: Bluewater_Dispatcher::_load_controller()
Methods
static Dispatch (line 123)

Disaptches Controller Class

PHPUnit: Not Defined
access: public
uses: Bluewater_Dispatcher::_load_controller()
uses: Bluewater_Dispatcher::$_objCommand
static void Dispatch (void 0)
  • void 0
static _load_controller (line 173)

Attempts to auto-load defined Controller Class file

final: This method can not be overloaded
PHPUnit: Not Defined
access: private
usedby: Bluewater_Dispatcher::_load_controller()
usedby: Bluewater_Dispatcher::Internal()
usedby: Bluewater_Dispatcher::Dispatch()
uses: CONTROL
uses: Bluewater_Dispatcher::_load_controller()
uses: Bluewater_Dispatcher::$_objCommand
static void _load_controller (void 0)
  • void 0
Constructor __construct (line 102)

Class constructor.

This method is 'private' to ensure it is called as a Static Object only.

PHPUnit: Not Defined
final: This method can not be overloaded
access: private
uses: Bluewater_Controller_Command::getInstance()
uses: Bluewater_Controller_Command::getInstance() - Used to parse URI for Command Control
void __construct (void 0)
  • void 0
Internal (line 214)

Allows control to pass from one controller to another without having to perform a direct URL request

final: This method can not be overloaded
PHPUnit: Not Defined
access: public
uses: Bluewater_Dispatcher::_load_controller()
uses: Bluewater_Dispatcher::$_objCommand
uses: Bluewater_Controller_Command::getInstance()
void Internal ([string $_fakeURL = false])
  • string $_fakeURL: fake URL for Dispatch to process

Documentation generated on Tue, 18 Aug 2009 02:30:17 -0500 by phpDocumentor 1.4.2