[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/uiexample/examples/ -> PhabricatorBarePageExample.php (source)

   1  <?php
   2  
   3  final class PhabricatorBarePageExample extends PhabricatorUIExample {
   4  
   5    public function getName() {
   6      return 'Bare Page';
   7    }
   8  
   9    public function getDescription() {
  10      return 'This is a bare page.';
  11    }
  12  
  13    public function renderExample() {
  14      $view = new PhabricatorBarePageView();
  15      $view->appendChild(
  16        phutil_tag(
  17          'h1',
  18          array(),
  19          $this->getDescription()));
  20  
  21      $response = new AphrontWebpageResponse();
  22      $response->setContent($view->render());
  23      return $response;
  24    }
  25  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1