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

Public Member Functions

 setResponseCode ($code)
 
 setResponseMessage ($message)
 
 setResponseAction ($responseAction)
 
 getResponseAction ()
 
- 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

 $responseCode = "200"
 
 $responseMessage = ""
 
 $responseAction = null
 
- Public Attributes inherited from Olga
 $arrayObjects = []
 

Detailed Description

Class AjaxRouterResponse

AjaxRouterResponse should be used to return responses to the Cody ajaxRouter command

$responseAction->setRedirectPath('/login');
$responseAction->setResponseScript(script("window.alert('You need to goto /login')"));
$ajaxRouterResponse = new AjaxRouterResponse();
$ajaxRouterResponse->setResponseAction ($responseAction);
echo $ajaxRouterResponse->toJSON();

Member Function Documentation

AjaxRouterResponse::getResponseAction ( )

Get the response action

Returns
AjaxResponseAction
AjaxRouterResponse::setResponseAction (   $responseAction)

Set the response action which is an object of AjaxResponseAction

Parameters
$responseAction
AjaxRouterResponse::setResponseCode (   $code)

Set the response code

Parameters
$code
AjaxRouterResponse::setResponseMessage (   $message)

Set the response message, if script tags are included the contents in them will be run

Parameters
$message

Member Data Documentation

AjaxRouterResponse::$responseAction = null
AjaxRouterResponse::$responseCode = "200"
AjaxRouterResponse::$responseMessage = ""

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