Request::getPathInfo()

string getPathInfo() Returns the path being requested relative to the executed script. The path info always starts with a /. Suppose this request is instantiated from /mysite on localhost: http://localhost/mysite returns an empty string http://localhost/mysite/about returns '/about' http://localhost/mysite/enco%20ded returns '/enco%20ded' http://localhost/mysite/about?var=1 returns '/about' Return Value string The raw path (i.e. not urldecoded)

Request::getPassword()

string|null getPassword() Returns the password. Return Value string|null

Request::getParameters()

array getParameters() Gets the request parameters. Return Value array The request parameters

Request::getMimeTypes()

static array getMimeTypes(string $format) Gets the mime types associated with the format. Parameters string $format The format Return Value array The associated mime types

Request::getMimeType()

string getMimeType(string $format) Gets the mime type associated with the format. Parameters string $format The format Return Value string The associated mime type (null if not found)

Request::getMethod()

string getMethod() Gets the request "intended" method. If the X-HTTP-Method-Override header is set, and if the method is a POST, then it is used to determine the "real" intended HTTP method. The _method request parameter can also be used to determine the HTTP method, but only if enableHttpMethodParameterOverride() has been called. The method is always an uppercased string. Return Value string The request method See also getRealMethod()

Request::getMethod()

string getMethod() Gets the request HTTP method. Return Value string The request HTTP method

Request::getLocale()

string getLocale() Get the locale. Return Value string

Request::getLanguages()

array getLanguages() Gets a list of languages acceptable by the client browser. Return Value array Languages ordered in the user browser preferences

Request::getHttpMethodParameterOverride()

static bool getHttpMethodParameterOverride() Checks whether support for the _method request parameter is enabled. Return Value bool True when the _method request parameter is enabled, false otherwise