JsonResponse
JSON Response class.
This class serves to provide the Joomla Platform with a common interface to access response variables for e.g. Ajax requests.
since |
3.1 |
---|---|
package |
Joomla CMS |
Methods
__construct
Constructor
__construct(mixed response = null, string message = null, bool error = false, bool ignoreMessages = false) : mixed
since |
3.1 |
---|
Arguments
- response
mixed
The Response data- message
string
The main response message- error
bool
True, if the success flag shall be set to false, defaults to false- ignoreMessages
bool
True, if the message queue shouldn't be included, defaults to false
Response
mixed
__toString
Magic toString method for sending the response in JSON format
__toString() : string
since |
3.1 |
---|
Response
string
The response in JSON format