[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/installation/src/Controller/ -> JSONController.php (summary)

(no description)

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

Defines 2 functions

  sendJsonResponse()
  checkValidToken()

Functions
Functions that are not part of a class:

sendJsonResponse($response)   X-Ref
Method to send a JSON response. The data parameter
can be an Exception object for when an error has occurred or
a JsonResponse for a good response.

param: mixed  $response  JsonResponse on success, Exception on failure.
return: void

checkValidToken()   X-Ref
Checks for a form token, if it is invalid a JSON response with the error code 403 is sent.

return: void



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