2011-01-30 09:15:01 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class AphrontRequestFailureView extends AphrontView {
|
|
|
|
|
|
|
|
private $header;
|
|
|
|
|
|
|
|
public function setHeader($header) {
|
|
|
|
$this->header = $header;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
final public function render() {
|
|
|
|
require_celerity_resource('aphront-request-failure-view-css');
|
2011-01-30 10:37:36 -08:00
|
|
|
|
2013-02-11 13:16:57 -08:00
|
|
|
return hsprintf(
|
2011-01-30 09:15:01 -08:00
|
|
|
'<div class="aphront-request-failure-view">'.
|
|
|
|
'<div class="aphront-request-failure-head">'.
|
2013-02-11 13:16:57 -08:00
|
|
|
'<h1>%s</h1>'.
|
2011-01-30 09:15:01 -08:00
|
|
|
'</div>'.
|
2013-02-11 13:16:57 -08:00
|
|
|
'<div class="aphront-request-failure-body">%s</div>'.
|
|
|
|
'</div>',
|
|
|
|
$this->header,
|
2013-02-11 14:55:35 -08:00
|
|
|
$this->renderChildren());
|
2011-01-30 09:15:01 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|