Tina4Stack  v1.0.1
The Tina4 Stack
AjaxResponseAction Class Reference
Inheritance diagram for AjaxResponseAction:
Olga

Public Member Functions

 setRedirectPath ($path)
 
 getRedirectPath ()
 
 setResponseScript ($script)
 
 getResponseScript ()
 
- Public Member Functions inherited from Olga
 populateFromXCache ()
 
 populateToXCache ()
 
 mapRecord ($record)
 
 populateFromDebby ($DEB)
 
 populateToDebby ()
 
 load ()
 
 save ($onlyToMemory=false)
 
 __clone ()
 
 append ($object)
 
 toJSON ()
 
 __toString ()
 
 fromJSON ($jsonString)
 
 populateObject ($sql)
 
 getBy ($fieldArray)
 
 getLike ($fieldArray, $matchType=OLGA_MATCH_ENDING)
 
 __toJson ($data)
 
 __call ($method, $args)
 
 persist ()
 
 createGetSet ()
 
 __construct ($jsonString="")
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 count ()
 
 clear ()
 

Public Attributes

 $redirectPath = ""
 
 $responseScript = ""
 
- Public Attributes inherited from Olga
 $arrayObjects = []
 

Detailed Description

Class AjaxResponseAction

The response action is used as part of the response telling the system what should happen

$responseAction = new AjaxResponseAction();
$responseAction->setRedirectPath('/login');
$responseAction->setResponseScript(script("window.alert('You need to goto /login')"));

Member Function Documentation

AjaxResponseAction::getRedirectPath ( )

Get the redirect path

Returns
string
AjaxResponseAction::getResponseScript ( )

Get the response script

Returns
string
AjaxResponseAction::setRedirectPath (   $path)

Set the redirection path

Parameters
$pathstring Path to the new location the application must navigate
AjaxResponseAction::setResponseScript (   $script)

Set the response script

Parameters
$script

Member Data Documentation

AjaxResponseAction::$redirectPath = ""
AjaxResponseAction::$responseScript = ""

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