Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/controller/PhabricatorController.php
Show First 20 Lines • Show All 569 Lines • ▼ Show 20 Lines | /* -( Deprecated )--------------------------------------------------------- */ | ||||
* DEPRECATED. Use @{method:newPage}. | * DEPRECATED. Use @{method:newPage}. | ||||
*/ | */ | ||||
public function buildStandardPageResponse($view, array $data) { | public function buildStandardPageResponse($view, array $data) { | ||||
$page = $this->buildStandardPageView(); | $page = $this->buildStandardPageView(); | ||||
$page->appendChild($view); | $page->appendChild($view); | ||||
return $page->produceAphrontResponse(); | return $page->produceAphrontResponse(); | ||||
} | } | ||||
/** | |||||
* DEPRECATED. Use @{method:newPage}. | |||||
*/ | |||||
public function buildApplicationPage($view, array $options) { | |||||
$page = $this->newPage(); | |||||
$title = PhabricatorEnv::getEnvConfig('phabricator.serious-business') ? | |||||
jcox: I'm glad this lets me know we're dealing with `serious-business` here. | |||||
'Phabricator' : | |||||
pht('Bacon Ice Cream for Breakfast'); | |||||
Not Done Inline ActionsRIP yelirekim: RIP | |||||
$page->setTitle(idx($options, 'title', $title)); | |||||
if (idx($options, 'class')) { | |||||
$page->addClass($options['class']); | |||||
} | |||||
if (!($view instanceof AphrontSideNavFilterView)) { | |||||
$nav = new AphrontSideNavFilterView(); | |||||
$nav->appendChild($view); | |||||
$view = $nav; | |||||
} | |||||
$page->appendChild($view); | |||||
$object_phids = idx($options, 'pageObjects', array()); | |||||
if ($object_phids) { | |||||
$page->setPageObjectPHIDs($object_phids); | |||||
} | |||||
if (!idx($options, 'device', true)) { | |||||
$page->setDeviceReady(false); | |||||
} | |||||
$page->setShowFooter(idx($options, 'showFooter', true)); | |||||
$page->setShowChrome(idx($options, 'chrome', true)); | |||||
return $page->produceAphrontResponse(); | |||||
} | |||||
} | } |
I'm glad this lets me know we're dealing with serious-business here.