public function __construct(WebRequest $base, $data, $wasPosted = false) { $this->base = $base; parent::__construct($data, $wasPosted); }
public function __construct($url, array $cookies = array()) { $this->url = $url; $query = array(); if ($url) { $params = wfParseUrl(wfExpandUrl($url)); if (isset($params['query'])) { $query = wfCgiToArray($params['query']); } } parent::__construct($query); $this->cookies = $cookies; $this->response = new FauxResponse(); }