function SanitizerTestRequest::__construct

Constructor.

Parameters

array $query: The GET parameters.

array $request: The POST parameters.

array $attributes: The request attributes.

array $cookies: The COOKIE parameters.

File

modules/simpletest/tests/request_sanitizer.test, line 319

Class

SanitizerTestRequest
Basic HTTP Request class.

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.