Чтение параметров $_GET, $_POST, $_FILES, php://input

global $app;
$int = $app->input->getInt('param_name', 0);
$files = $app->input->files->get('jform');

/**
 * Joomla! Input Base Class
 *
 * @method      integer  getInt($name, $default = null)       Get a signed integer.
 * @method      integer  getUint($name, $default = null)      Get an unsigned integer.
 * @method      float    getFloat($name, $default = null)     Get a floating-point number.
 * @method      boolean  getBool($name, $default = null)      Get a boolean value.
 * @method      string   getWord($name, $default = null)      Get a word.
 * @method      string   getAlnum($name, $default = null)     Get an alphanumeric string.
 * @method      string   getCmd($name, $default = null)       Get a CMD filtered string.
 * @method      string   getBase64($name, $default = null)    Get a base64 encoded string.
 * @method      string   getString($name, $default = null)    Get a string.
 * @method      string   getHtml($name, $default = null)      Get a HTML string.
 * @method      string   getPath($name, $default = null)      Get a file path.
 * @method      string   getUsername($name, $default = null)  Get a username.
 * @method      array    getArray(array $vars = array(), $datasource = null)
 */

 

Чтения потока данных из php://input


// PHP метод:
$resp = file_get_contents('php://input');
$json = json_decode($json);

// Joomla метод:
$json = new Joomla\Input\Json();
$resp = $json->getRaw();
$param = $json->getVar('param_name');