TKSWATAction Class Reference
[Actions]

Invokes a SWAT event. More...

Inheritance diagram for TKSWATAction:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($target, $actionId, $vars=array(), $action="")
 Creates a new SWAT action.

Static Public Member Functions

static createFromXML ($attrs, $children)


Detailed Description

Invokes a SWAT event.

See the SWAT documentation for more on SWAT events.

Definition at line 9 of file TKSWATAction.php5.


Constructor & Destructor Documentation

TKSWATAction::__construct ( target,
actionId,
vars = array(),
action = "" 
)

Creates a new SWAT action.

Parameters:
$target [mixed]: SWAT event target
$actionId [int]: which SWAT event to invoke (usually a constant in LocalEventHandler)
$vars [mixed]: array of variable => value pairs for additional variables to send to event handler; or a TKForm which contains additional variables
$action [string]: URL to send request to; defaults to $_SERVER['REQUEST_URI']

Definition at line 18 of file TKSWATAction.php5.


Member Function Documentation

static TKSWATAction::createFromXML ( attrs,
children 
) [static]

For internal use only.

Reimplemented from TKPostAction.

Definition at line 45 of file TKSWATAction.php5.

References Toolkit::getComponent().


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

Generated on Wed Nov 24 02:07:16 2010 for Common by  doxygen 1.5.6