Differential D9859 Diff 23678 src/applications/conpherence/conduit/ConduitAPI_conpherence_updatethread_Method.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/conduit/ConduitAPI_conpherence_updatethread_Method.php
| <?php | <?php | ||||
| /** | |||||
| * @group conduit | |||||
| */ | |||||
| final class ConduitAPI_conpherence_updatethread_Method | final class ConduitAPI_conpherence_updatethread_Method | ||||
| extends ConduitAPI_conpherence_Method { | extends ConduitAPI_conpherence_Method { | ||||
| public function getMethodDescription() { | public function getMethodDescription() { | ||||
| return pht('Update an existing conpherence thread.'); | return pht('Update an existing conpherence thread.'); | ||||
| } | } | ||||
| public function defineParamTypes() { | public function defineParamTypes() { | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | protected function execute(ConduitAPIRequest $request) { | ||||
| try { | try { | ||||
| $xactions = $editor->applyTransactions($conpherence, $xactions); | $xactions = $editor->applyTransactions($conpherence, $xactions); | ||||
| } catch (PhabricatorApplicationTransactionNoEffectException $ex) { | } catch (PhabricatorApplicationTransactionNoEffectException $ex) { | ||||
| throw new ConduitException('ERR_USAGE_NO_UPDATES'); | throw new ConduitException('ERR_USAGE_NO_UPDATES'); | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||