[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/aphront/response/ -> Aphront404Response.php (source)

   1  <?php
   2  
   3  final class Aphront404Response extends AphrontHTMLResponse {
   4  
   5    public function getHTTPResponseCode() {
   6      return 404;
   7    }
   8  
   9    public function buildResponseString() {
  10      $request = $this->getRequest();
  11      $user = $request->getUser();
  12  
  13      $dialog = id(new AphrontDialogView())
  14        ->setUser($user)
  15        ->setTitle(pht('404 Not Found'))
  16        ->addCancelButton('/', pht('Focus'))
  17        ->appendParagraph(pht(
  18        'Do not dwell in the past, do not dream of the future, '.
  19        'concentrate the mind on the present moment.'));
  20  
  21      $view = id(new PhabricatorStandardPageView())
  22        ->setTitle('404 Not Found')
  23        ->setRequest($request)
  24        ->setDeviceReady(true)
  25        ->appendChild($dialog);
  26  
  27      return $view->render();
  28    }
  29  
  30  }


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