2012-10-16 10:33:47 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorBarePageExample extends PhabricatorUIExample {
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return 'Bare Page';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDescription() {
|
|
|
|
return 'This is a bare page.';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function renderExample() {
|
|
|
|
$view = new PhabricatorBarePageView();
|
|
|
|
$view->appendChild(
|
2013-01-17 18:43:35 -08:00
|
|
|
phutil_tag(
|
2012-10-16 10:33:47 -07:00
|
|
|
'h1',
|
|
|
|
array(),
|
2013-01-17 18:43:35 -08:00
|
|
|
$this->getDescription()));
|
2012-10-16 10:33:47 -07:00
|
|
|
|
|
|
|
$response = new AphrontWebpageResponse();
|
|
|
|
$response->setContent($view->render());
|
|
|
|
return $response;
|
|
|
|
}
|
|
|
|
}
|