1 | <?php |
||
21 | class TextResponse extends Response { |
||
22 | |||
23 | private $content; |
||
24 | |||
25 | /** |
||
26 | * Creates a response that just outputs text |
||
27 | * @param string $content the content that should be written into the file |
||
28 | * @param string $contentType the mimetype. text/ is added automatically so |
||
29 | * only plain or html can be added to get text/plain or text/html |
||
30 | */ |
||
31 | public function __construct($content, $contentType='plain'){ |
||
35 | |||
36 | |||
37 | /** |
||
38 | * Simply sets the headers and returns the file contents |
||
39 | * @return string the file contents |
||
40 | */ |
||
41 | public function render(){ |
||
44 | |||
45 | |||
46 | } |
||
47 |