API16:JRequest/getMethod
From Joomla! Documentation
Description
Gets the request method.
Syntax
static getMethod()
Returns
string
Defined in
libraries/joomla/environment/request.php
Importing
jimport( 'joomla.environment.request' );
Source Body
public static function getMethod()
{
$method = strtoupper($_SERVER['REQUEST_METHOD']);
return $method;
}
Examples
Code Examples