API16

JRequest/getMethod

< API16:JRequest

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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


Advertisement