joomla:overrides
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
Joomla - JInput
Zusatzinformationen zu JInput - Joomla-Klasse, um Request-Variablen zu empgangen. Offizielle Doku: https://docs.joomla.org/Retrieving_request_data_using_JInput
Klasse
So wird die Klasse aufgerufen:
use Joomla\CMS\Factory; $input = Factory::getApplication()->input; // equivalent of the older format $input = JFactory::getApplication()->input;
Eine bestimmte Variable
$name = $input->get('name', 'default', 'filter');
Mehrere bestimmte Variablen
$name = $input->getArray(array('p1'=>'int', 'p2'=>'float', 'p3'=>'word'));
Variablen aus einem Joomla-Formular (JForm)
$name = $input->getArray(array( 'jform' => array('title'=>'string', 'quantity'=>'int', 'state'=>'int') ));
Eine bestimmte GET-Variable
$name = $input->get->get('name', 'default', 'filter');
Alle vorhandenen Variablen
$name = $input->getArray(array());
joomla/overrides.1613741420.txt.gz · Zuletzt geändert: 19/02/2021 14:30 von 127.0.0.1