1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-04 20:52:43 +01:00
phorge-phorge/src/aphront/response/AphrontWebpageResponse.php

30 lines
570 B
PHP
Raw Normal View History

<?php
/**
* TODO: Should be final, but isn't because of Aphront403Response / 404Response.
*
* @group aphront
*/
class AphrontWebpageResponse extends AphrontResponse {
private $content;
public function setContent($content) {
$this->content = $content;
return $this;
}
public function buildResponseString() {
return $this->content;
}
2011-01-23 06:09:13 +01:00
public function getHeaders() {
2011-04-07 04:17:05 +02:00
$headers = array(
array('Content-Type', 'text/html; charset=UTF-8'),
2011-01-23 06:09:13 +01:00
);
$headers = array_merge(parent::getHeaders(), $headers);
2011-04-07 04:17:05 +02:00
return $headers;
2011-01-23 06:09:13 +01:00
}
}