Class Bluewater_Controller_Command

Overview

Controller Command for Bluewater MVC Controllers.

The Interpreter translates URIs into a command structure which is used by the Dispathcer to determine which Controller::Method is to be called and what parameters are to be sent to that Method.

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

Located in /controller/command.php (line 58)


	
    		        
Properties Summary
static object $_instance
static object $_objCommand
Method Summary
static object getInstance ([boolean $_force = false])
void __construct (void 0)
bool _keep_false (mixed $_value)
void _url_interpreter (void 0)
Properties
static object $_instance = null (line 75)

Singleton instance of this Class Object

since: 1.0
access: private
usedby: Bluewater_Controller_Command::getInstance()
static object $_objCommand = null (line 86)

Command Object to handle

since: 1.0
access: private
usedby: Bluewater_Controller_Command::getInstance()
usedby: Bluewater_Controller_Command::_url_interpreter()
Methods
static getInstance (line 190)

Singleton instance

return: Controller Command Object
PHPUnit: Not Defined
access: public
usedby: Bluewater_Dispatcher::Internal()
usedby: Bluewater_Dispatcher::__construct()
usedby: Bluewater_Dispatcher::__construct() - Used to parse URI for Command Control
uses: Bluewater_Controller_Command::$_objCommand
uses: Bluewater_Controller_Command::$_instance
static object getInstance ([boolean $_force = false])
  • boolean $_force: Force a new instance regardless of previous state
Constructor __construct (line 107)

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::_url_interpreter()
void __construct (void 0)
  • void 0
_keep_false (line 215)

Returns a TRUE/FALSE indicating whether given parameter has a value.

This is used as a callback for 'array_filter' in order to keep FALSE and ZERO values intack.

return: whether given parameter has a value
final: This method can not be overloaded
PHPUnit: Not Defined
access: private
usedby: Bluewater_Controller_Command::_url_interpreter()
bool _keep_false (mixed $_value)
  • mixed $_value: array value to process
_url_interpreter (line 133)

Rips into the HTTP URI value and builds a Command Controller Object containing the Class, its Method to run and any parameters to be sent to that Class Method.

GET data is not processed here. GET data can be accessed as usual via the $_GET super global.

PHPUnit: Not Defined
final: This method can not be overloaded
access: private
usedby: Bluewater_Controller_Command::__construct()
uses: Bluewater_Controller_Command::_keep_false()
uses: Bluewater_Controller_Command::$_objCommand
void _url_interpreter (void 0)
  • void 0

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