Differential D14073 Diff 34741 src/applications/conpherence/conduit/ConpherenceUpdateThreadConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/conduit/ConpherenceUpdateThreadConduitAPIMethod.php
Show All 23 Lines | final class ConpherenceUpdateThreadConduitAPIMethod | ||||
protected function defineReturnType() { | protected function defineReturnType() { | ||||
return 'bool'; | return 'bool'; | ||||
} | } | ||||
protected function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR_USAGE_NO_ROOM_ID' => pht( | 'ERR_USAGE_NO_ROOM_ID' => pht( | ||||
'You must specify a room id or room phid to query transactions '. | 'You must specify a room ID or room PHID to query transactions from.'), | ||||
'from.'), | |||||
'ERR_USAGE_ROOM_NOT_FOUND' => pht( | 'ERR_USAGE_ROOM_NOT_FOUND' => pht( | ||||
'room does not exist or logged in user can not see it.'), | 'Room does not exist or logged in user can not see it.'), | ||||
'ERR_USAGE_ONLY_SELF_REMOVE' => pht( | 'ERR_USAGE_ONLY_SELF_REMOVE' => pht( | ||||
'Only a user can remove themselves from a room.'), | 'Only a user can remove themselves from a room.'), | ||||
'ERR_USAGE_NO_UPDATES' => pht( | 'ERR_USAGE_NO_UPDATES' => pht( | ||||
'You must specify data that actually updates the conpherence.'), | 'You must specify data that actually updates the Conpherence.'), | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$user = $request->getUser(); | $user = $request->getUser(); | ||||
$id = $request->getValue('id'); | $id = $request->getValue('id'); | ||||
$phid = $request->getValue('phid'); | $phid = $request->getValue('phid'); | ||||
$query = id(new ConpherenceThreadQuery()) | $query = id(new ConpherenceThreadQuery()) | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |