| 1 | <?php |
||
| 22 | class HttpView extends BaseView { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Do a redirect |
||
| 26 | * |
||
| 27 | * @param string $url |
||
| 28 | * @param int $code |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function redirect($url, $code) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Set the status code of the request |
||
| 38 | * |
||
| 39 | * @param int $code |
||
| 40 | * @return HttpView |
||
| 41 | */ |
||
| 42 | public function setStatusCode($code) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Send output to client |
||
| 51 | */ |
||
| 52 | public function send() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Send the appropriate response |
||
| 60 | * |
||
| 61 | * @return void |
||
| 62 | */ |
||
| 63 | protected function output() |
||
| 73 | |||
| 74 | } |