Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
| <?php | <?php | ||||
| /** | /** | ||||
| * This is a standard Phabricator page with menus, Javelin, DarkConsole, and | * This is a standard Phabricator page with menus, Javelin, DarkConsole, and | ||||
| * basic styles. | * basic styles. | ||||
| * | |||||
| */ | */ | ||||
| final class PhabricatorStandardPageView extends PhabricatorBarePageView { | final class PhabricatorStandardPageView extends PhabricatorBarePageView { | ||||
| private $baseURI; | private $baseURI; | ||||
| private $applicationName; | private $applicationName; | ||||
| private $glyph; | private $glyph; | ||||
| private $menuContent; | private $menuContent; | ||||
| private $showChrome = true; | private $showChrome = true; | ||||
| ▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | final class PhabricatorStandardPageView extends PhabricatorBarePageView { | ||||
| protected function willRenderPage() { | protected function willRenderPage() { | ||||
| parent::willRenderPage(); | parent::willRenderPage(); | ||||
| if (!$this->getRequest()) { | if (!$this->getRequest()) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'You must set the Request to render a PhabricatorStandardPageView.')); | 'You must set the Request to render a %s.', | ||||
| __CLASS__)); | |||||
| } | } | ||||
| $console = $this->getConsole(); | $console = $this->getConsole(); | ||||
| require_celerity_resource('phabricator-core-css'); | require_celerity_resource('phabricator-core-css'); | ||||
| require_celerity_resource('phabricator-zindex-css'); | require_celerity_resource('phabricator-zindex-css'); | ||||
| require_celerity_resource('phui-button-css'); | require_celerity_resource('phui-button-css'); | ||||
| require_celerity_resource('phui-spacing-css'); | require_celerity_resource('phui-spacing-css'); | ||||
| ▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines | |||||