Class CommandContext

Description

Encapsulates data for passing to, from and between Commands.

Commands require disparate data according to context. The CommandContext object is passed to the Command::execute() method, and contains data in key/value format. The class automatically extracts the contents of the $_REQUEST superglobal.

  • author: Clarrie Grundie
  • copyright: 2007 Ambridge Technologies Ltd
  • usedby: Command::execute()

Located in /command/CommandContext.php (line 20)


	
			
Variable Summary
Method Summary
CommandContext __construct ( $appname)
void addParam ( $key,  $val)
void get ( $key)
void getError ()
void setError ( $error)
Variables
string $applicationName (line 26)

The application name.

Used by various clients for error messages, etc.

  • access: public
Methods
Constructor __construct (line 41)
CommandContext __construct ( $appname)
  • $appname
addParam (line 46)
void addParam ( $key,  $val)
  • $key
  • $val
get (line 50)
void get ( $key)
  • $key
getError (line 58)
void getError ()
setError (line 54)
void setError ( $error)
  • $error

Documentation generated on Mon, 08 Feb 2010 21:57:29 -0800 by phpDocumentor 1.4.3