Class Request
Request This class represents the current HTTP request. It exposes 6 public vars (objects) for getting information For some there are methods for convience.
Methods summary
public static
|
|
public
|
#
__construct( array $query = array(), array $request = array(), array $cookies = array(), array $files = array(), array $server = array() )
Constructor |
public
string
|
|
public
|
|
public
|
|
public static
|
|
public static
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
getBasePath( )
Returns the base path from the root, for example if this class was constructed in the subfolder 'foo' this method would return 'foo' for this uri: http://localhost/foo/index.php |
public
string
|
|
public
string
|
|
public
array
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
string
|
|
protected
string
|
|
protected
string
|
|
protected
|
|
protected
|
|
protected static
string|false
|
#
getPrefixUrlEncoded( string $str, string $pre )
Returns the string prefix if it' s the string' s prefix (URL Encoded) false otherwise |
Magic methods summary
Properties summary
public
Modulework\Modules\Http\ArrayCase
|
$query |
#
The ArrayCase for the QueryString (_GET) |
public
Modulework\Modules\Http\ArrayCase
|
$request |
#
The ArrayCase for the POST request (_POST) |
public
Modulework\Modules\Http\ServerCase
|
$server |
#
The ArrayCase for the server varibales (_SERVER) |
public
Modulework\Modules\Http\FileCase
|
$files |
#
The ArrayCase for the files attached to the request (_FILES) |
public
Modulework\Modules\Http\ArrayCase
|
$cookies |
#
The ArrayCase for the cookies (_COOKIE) |
public
Modulework\Modules\Http\HeaderCase
|
$headers |
#
The ArrayCase for the HTTP headers |
protected
string
|
$uri |
#
The URI of this request |
protected
string
|
$path |
#
The path information of this request |
protected
string
|
$baseUrl |
#
The base URL of this request |
protected
string
|
$basePath |
#
The base path of this request |
protected
string
|
$method |
#
The HTTP verb (GET/POST/PUT/DELETE) |