Differential D13066 Diff 31552 src/applications/maniphest/conduit/ManiphestGetTaskTransactionsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/conduit/ManiphestGetTaskTransactionsConduitAPIMethod.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | foreach ($transactions as $transaction) { | ||||
$task_id = $tasks[$task_phid]->getID(); | $task_id = $tasks[$task_phid]->getID(); | ||||
$comments = null; | $comments = null; | ||||
if ($transaction->hasComment()) { | if ($transaction->hasComment()) { | ||||
$comments = $transaction->getComment()->getContent(); | $comments = $transaction->getComment()->getContent(); | ||||
} | } | ||||
$results[$task_id][] = array( | $results[$task_id][] = array( | ||||
'taskID' => $task_id, | 'taskID' => $task_id, | ||||
'transactionPHID' => $transaction->getPHID(), | 'transactionPHID' => $transaction->getPHID(), | ||||
'transactionType' => $transaction->getTransactionType(), | 'transactionType' => $transaction->getTransactionType(), | ||||
'oldValue' => $transaction->getOldValue(), | 'oldValue' => $transaction->getOldValue(), | ||||
'newValue' => $transaction->getNewValue(), | 'newValue' => $transaction->getNewValue(), | ||||
'comments' => $comments, | 'comments' => $comments, | ||||
'authorPHID' => $transaction->getAuthorPHID(), | 'authorPHID' => $transaction->getAuthorPHID(), | ||||
'dateCreated' => $transaction->getDateCreated(), | 'dateCreated' => $transaction->getDateCreated(), | ||||
); | ); | ||||
} | } | ||||
return $results; | return $results; | ||||
} | } | ||||
} | } |