Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngine.php
| Show First 20 Lines • Show All 526 Lines • ▼ Show 20 Lines | if ($page) { | ||||
| if ($view_uri !== null) { | if ($view_uri !== null) { | ||||
| return $view_uri; | return $view_uri; | ||||
| } | } | ||||
| } | } | ||||
| return $this->getObjectViewURI($object); | return $this->getObjectViewURI($object); | ||||
| } | } | ||||
| public function getEffectiveObjectEditDoneURI($object) { | |||||
| return $this->getEffectiveObjectViewURI($object); | |||||
| } | |||||
| public function getEffectiveObjectEditCancelURI($object) { | public function getEffectiveObjectEditCancelURI($object) { | ||||
| $page = $this->getSelectedPage(); | $page = $this->getSelectedPage(); | ||||
| if ($page) { | if ($page) { | ||||
| $view_uri = $page->getViewURI(); | $view_uri = $page->getViewURI(); | ||||
| if ($view_uri !== null) { | if ($view_uri !== null) { | ||||
| return $view_uri; | return $view_uri; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 621 Lines • ▼ Show 20 Lines | return $controller->newPage() | ||||
| ->appendChild($view); | ->appendChild($view); | ||||
| } | } | ||||
| protected function newEditResponse( | protected function newEditResponse( | ||||
| AphrontRequest $request, | AphrontRequest $request, | ||||
| $object, | $object, | ||||
| array $xactions) { | array $xactions) { | ||||
| return id(new AphrontRedirectResponse()) | return id(new AphrontRedirectResponse()) | ||||
| ->setURI($this->getEffectiveObjectViewURI($object)); | ->setURI($this->getEffectiveObjectEditDoneURI($object)); | ||||
| } | } | ||||
| private function buildEditForm($object, array $fields) { | private function buildEditForm($object, array $fields) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $controller = $this->getController(); | $controller = $this->getController(); | ||||
| $request = $controller->getRequest(); | $request = $controller->getRequest(); | ||||
| $form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
| ▲ Show 20 Lines • Show All 998 Lines • Show Last 20 Lines | |||||