mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-28 12:08:14 +01:00
Summary: Updates Nuance controllers Test Plan: Read carefully, lint. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D13762
32 lines
643 B
PHP
32 lines
643 B
PHP
<?php
|
|
|
|
final class NuanceItemEditController extends NuanceController {
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
$viewer = $request->getViewer();
|
|
$id = $request->getURIData('id');
|
|
|
|
if (!$id) {
|
|
$item = new NuanceItem();
|
|
} else {
|
|
$item = id(new NuanceItemQuery())
|
|
->setViewer($viewer)
|
|
->withIDs(array($id))
|
|
->executeOne();
|
|
}
|
|
|
|
if (!$item) {
|
|
return new Aphront404Response();
|
|
}
|
|
|
|
$crumbs = $this->buildApplicationCrumbs();
|
|
$title = 'TODO';
|
|
|
|
return $this->buildApplicationPage(
|
|
$crumbs,
|
|
array(
|
|
'title' => $title,
|
|
));
|
|
}
|
|
|
|
}
|