Differential D12380 Diff 29771 src/applications/maniphest/conduit/ManiphestGetTaskTransactionsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/conduit/ManiphestGetTaskTransactionsConduitAPIMethod.php
<?php | <?php | ||||
final class ManiphestGetTaskTransactionsConduitAPIMethod | final class ManiphestGetTaskTransactionsConduitAPIMethod | ||||
extends ManiphestConduitAPIMethod { | extends ManiphestConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'maniphest.gettasktransactions'; | return 'maniphest.gettasktransactions'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Retrieve Maniphest Task Transactions.'; | return 'Retrieve Maniphest Task Transactions.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'ids' => 'required list<int>', | 'ids' => 'required list<int>', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty list<dict<string, wild>>'; | return 'nonempty list<dict<string, wild>>'; | ||||
} | } | ||||
public function defineErrorTypes() { | |||||
return array( | |||||
); | |||||
} | |||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$results = array(); | $results = array(); | ||||
$task_ids = $request->getValue('ids'); | $task_ids = $request->getValue('ids'); | ||||
if (!$task_ids) { | if (!$task_ids) { | ||||
return $results; | return $results; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |