WFAction represents an action that is called when a WFEvent occurs on the client.
WFAction offers 3 action types in response to an event:
When a ServerAction or AjaxAction is executed on the server, the php function specified in target/action should have the following prototype:
(object WFActionResponse) ajaxCallback($page, $params, $senderId, $eventName, [$userArg1, $userArg2, ... $userArgN]);
This prototype allows your event-driver rpc callbacks to operate the same as the standard form/action methods, but take in additional parameters:
Located in /framework/WFRPC.php (line 560)
WFObject | --WFAction
Create a new AjaxAction to reponsd to an event.
Call an action on the server, done via XHR.
Create a new JSAction to reponsd to an event.
JSAction simply calls a Javascript function in response to an event.
Create a new ServerAction to reponsd to an event.
Call an action on the server, done via complete page refresh.
Add an internal RPC object for ServerAction and AjaxAction.
The name of the JS event handler function that's called if an AJAX RPC fails.
The JS function PHOCOA.widgets.<id>.events.<eventName>.ajaxError() is called if the AjaxAction fails.
The name of the JS event handler function that's called when an AJAX RPC succeeds.
The JS function PHOCOA.widgets.<id>.events.<eventName>.ajaxSuccess() is called for AjaxAction when the ajax call completes successfully.
The name of the JS event handler function that's called to collect the arguments to pass to the event handler.
The JS function PHOCOA.widgets.<id>.events.<eventName>.collectArguments() is called to get an array of arguments to pass to handleEvent.
Ultimately these arguments are passed back to the server.
The name of the JS event handler function that's called on event firing.
The JS function PHOCOA.widgets.<id>.events.<eventName>.handleEvent(args) is called when the event fires.
Get the JS code needed to set up the action.
Set the rpc action for this WFAction. This passes through to the RPC.
Link the WFEvent to this action.
Set the rpc form for this WFAction. This passes through to the RPC.
Whether or not the triggering javascript event should be stopped.
Set the rpc target for this action. This passes through to the RPC.
Inherited From WFObject
WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForUndefinedKey()
WFObject::__toString()
Documentation generated on Thu, 07 Aug 2008 10:36:59 -0400 by phpDocumentor 1.4.1