class SanitizerTestRequest in Drupal 7
Basic HTTP Request class.
Hierarchy
- class \SanitizerTestRequest
Expanded class hierarchy of SanitizerTestRequest
File
- modules/
simpletest/ tests/ request_sanitizer.test, line 277 - Tests for the RequestSanitizer class.
View source
class SanitizerTestRequest {
/**
* The query (GET).
*
* @var array
*/
protected $query;
/**
* The request (POST).
*
* @var array
*/
protected $request;
/**
* The request attributes.
*
* @var array
*/
protected $attributes;
/**
* The request cookies.
*
* @var array
*/
protected $cookies;
/**
* Constructor.
*
* @param array $query
* The GET parameters.
* @param array $request
* The POST parameters.
* @param array $attributes
* The request attributes.
* @param array $cookies
* The COOKIE parameters.
*/
public function __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array()) {
$this->query = $query;
$this->request = $request;
$this->attributes = $attributes;
$this->cookies = $cookies;
}
/**
* Getter for $query.
*/
public function getQuery() {
return $this->query;
}
/**
* Getter for $request.
*/
public function getRequest() {
return $this->request;
}
/**
* Getter for $attributes.
*/
public function getAttributes() {
return $this->attributes;
}
/**
* Getter for $cookies.
*/
public function getCookies() {
return $this->cookies;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SanitizerTestRequest:: |
protected | property | The request attributes. | |
SanitizerTestRequest:: |
protected | property | The request cookies. | |
SanitizerTestRequest:: |
protected | property | The query (GET). | |
SanitizerTestRequest:: |
protected | property | The request (POST). | |
SanitizerTestRequest:: |
public | function | Getter for $attributes. | |
SanitizerTestRequest:: |
public | function | Getter for $cookies. | |
SanitizerTestRequest:: |
public | function | Getter for $query. | |
SanitizerTestRequest:: |
public | function | Getter for $request. | |
SanitizerTestRequest:: |
public | function | Constructor. |