Differential D17372 Diff 41774 src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | final class PhabricatorEditEngineConfiguration | ||||
public function getURI() { | public function getURI() { | ||||
$engine_key = $this->getEngineKey(); | $engine_key = $this->getEngineKey(); | ||||
$key = $this->getIdentifier(); | $key = $this->getIdentifier(); | ||||
return "/transactions/editengine/{$engine_key}/view/{$key}/"; | return "/transactions/editengine/{$engine_key}/view/{$key}/"; | ||||
} | } | ||||
public function getCreateURI() { | |||||
$form_key = $this->getIdentifier(); | |||||
$engine = $this->getEngine(); | |||||
try { | |||||
$create_uri = $engine->getEditURI(null, "form/{$form_key}/"); | |||||
} catch (Exception $ex) { | |||||
$create_uri = null; | |||||
} | |||||
return $create_uri; | |||||
} | |||||
public function getIdentifier() { | public function getIdentifier() { | ||||
$key = $this->getID(); | $key = $this->getID(); | ||||
if (!$key) { | if (!$key) { | ||||
$key = $this->getBuiltinKey(); | $key = $this->getBuiltinKey(); | ||||
} | } | ||||
return $key; | return $key; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |