[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Response/ -> JsonResponse.php (summary)

Joomla! Content Management System

Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 122 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JsonResponse:: (2 methods):
  __construct()
  __toString()


Class: JsonResponse  - X-Ref

JSON Response class.

This class serves to provide the Joomla Platform with a common interface to access
response variables for e.g. Ajax requests.

__construct($response = null, $message = null, $error = false, $ignoreMessages = false)   X-Ref
Constructor

param: mixed    $response        The Response data
param: string   $message         The main response message
param: boolean  $error           True, if the success flag shall be set to false, defaults to false
param: boolean  $ignoreMessages  True, if the message queue shouldn't be included, defaults to false

__toString()   X-Ref
Magic toString method for sending the response in JSON format

return: string  The response in JSON format



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer