mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-09 06:11:01 +01:00
8c71815028
Summary: `renderChildren()` now returns array which isn't ideal but I prefer it to having two methods. Test Plan: None. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4910
27 lines
591 B
PHP
27 lines
591 B
PHP
<?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');
|
|
|
|
return hsprintf(
|
|
'<div class="aphront-request-failure-view">'.
|
|
'<div class="aphront-request-failure-head">'.
|
|
'<h1>%s</h1>'.
|
|
'</div>'.
|
|
'<div class="aphront-request-failure-body">%s</div>'.
|
|
'</div>',
|
|
$this->header,
|
|
$this->renderChildren());
|
|
}
|
|
|
|
}
|