public static
mixed
|
#
get( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_GET and casts the value.
Returns the variable $varname of $_GET and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
|
|
public static
mixed
|
#
post( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_POST and casts the value.
Returns the variable $varname of $_POST and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
|
|
public static
mixed
|
#
request( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_REQUEST and casts the value.
Returns the variable $varname of $_REQUEST and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
|
|
public static
mixed
|
#
server( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_SERVER and casts the value.
Returns the variable $varname of $_SERVER and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
|
|
public static
mixed
|
#
session( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_SESSION and casts the value.
Returns the variable $varname of $_SESSION and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
Throws
|
|
public static
|
#
setSession( string $varname, mixed $value )
Sets a session variable.
Parameters
- $varname
- Variable name
- $value
- Value
Throws
|
|
public static
|
#
unsetSession( string $varname )
Deletes a session variable.
Deletes a session variable.
Parameters
Throws
|
|
public static
|
#
clearSession( )
clear redaxo session contents within the current namespace (the session
itself stays alive).
clear redaxo session contents within the current namespace (the session
itself stays alive).
Throws
|
|
public static
mixed
|
#
cookie( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_COOKIE and casts the value.
Returns the variable $varname of $_COOKIE and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
|
|
public static
mixed
|
#
files( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_FILES and casts the value.
Returns the variable $varname of $_FILES and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
|
|
public static
mixed
|
#
env( string $varname, string $vartype = '', mixed $default = '' )
Returns the variable $varname of $_ENV and casts the value.
Returns the variable $varname of $_ENV and casts the value.
Parameters
- $varname
- Variable name
- $vartype
- Variable type
- $default
- Default value
Returns
mixed mixed
|
|
public static
string
|
#
requestMethod( )
Returns the HTTP method of the current request.
Returns the HTTP method of the current request.
Returns
string HTTP method in lowercase (head,get,post,put,delete)
|
|
public static
boolean
|
#
isXmlHttpRequest( )
Returns true if the request is a XMLHttpRequest.
Returns true if the request is a XMLHttpRequest.
This only works if your javaScript library sets an X-Requested-With HTTP
header. This is the case with Prototype, Mootools, jQuery, and perhaps
others.
Inspired by a method of the symfony framework.
Returns
boolean true if the request is an XMLHttpRequest, false otherwise
|
|
public static
|
#
isPJAXRequest( )
Returns true if the request is a PJAX-Request.
Returns true if the request is a PJAX-Request.
See
|
|
public static
boolean
|
#
isPJAXContainer( string $containerId )
Returns true when the current request is a PJAX-Request and the requested
container matches the given $containerId.
Returns true when the current request is a PJAX-Request and the requested
container matches the given $containerId.
Parameters
Returns
boolean bool
|
|
public static
boolean
|
#
isHttps( )
Returns whether the current request is served via https/ssl.
Returns whether the current request is served via https/ssl.
Returns
boolean true when https/ssl, otherwise false.
|
|
public static
string
|
#
getSessionNamespace( )
Returns the session namespace for the current http request.
Returns the session namespace for the current http request.
Returns
string string
|
|