Lines Matching refs:this

23      * Php will change it this way.
88 $this->executionContext = $executionContext;
89 return $this;
116 $this->event = $event;
117 return $this;
124 $this->hasEnded = true;
130 if (isset($this->executionContext)) {
131 $this->executionContext->closeMainExecutingFetcher();
134 if (isset($this->mime)) {
135 Http::setMime($this->mime->toString());
142 foreach ($this->headers as $header) {
146 if ($this->status !== null) {
147 Http::setStatus($this->status);
152 LogUtility::log2file("No status was set for this soft exit, the default was set instead", LogUtility::LVL_MSG_ERROR, $this->canonical);
159 if (isset($this->body)) {
160 echo $this->body;
169 if ($this->status !== HttpResponseStatus::ALL_GOOD && isset($this->body)) {
170 // if this is a 304, there is no body, no message
171 LogUtility::log2file("Bad Http Response: $this->status : {$this->getBody()}", LogUtility::LVL_MSG_ERROR, $this->canonical);
185 if (isset($this->body)) {
186 $testRequest->addData(self::EXIT_KEY, $this->body);
193 * it will capture the body until this point
209 if ($this->event !== null) {
210 $this->event->stopPropagation();
211 $this->event->preventDefault();
230 $this->canonical = $canonical;
231 return $this;
238 $this->headers[] = $header;
239 return $this;
252 $this->setBody($message, Mime::getJson());
253 return $this;
260 $this->body = $body;
261 $this->mime = $mime;
262 return $this;
271 return $this->body;
281 return Http::getHeadersForName($headerName, $this->headers);
292 $headers = $this->getHeaders($headerName);
307 $header = $this->getHeader($headerName);
314 $this->headers = $headers;
315 return $this;
324 return XmlDocument::createHtmlDocFromMarkup($this->getBody());
330 $this->status = $status;
331 return $this;
340 $this->setStatus(self::getStatusFromException($e));
342 $this->setStatus(HttpResponseStatus::INTERNAL_ERROR);
344 $this->setBodyAsJsonMessage($e->getMessage());
345 return $this;
351 return $this->status;
357 return $this->hasEnded;
365 return Json::createFromString($this->getBody())->toArray();
370 $this->dokuwikiResponseObject = $response;
371 return $this;
376 return $this->dokuwikiResponseObject;
381 * @return $this
387 * as this may be wanted
392 $this->setStatus($status);
394 $this->setStatus(HttpResponseStatus::INTERNAL_ERROR);
397 $this->setBody($message, Mime::getHtml());
398 return $this;
407 return $this->getHeader(self::HEADER_CONTENT_TYPE);
415 * @return $this
420 $this->body = $browserRunner
421 ->executeHtmlPage($this->getBody(), $waitTimeInSecondToComplete)
426 return $this;
434 return Json::createFromString($this->getBody());