Differential D20524 Diff 48947 src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php
Show First 20 Lines • Show All 254 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
break; | break; | ||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS: | case PhabricatorTransactions::TYPE_SUBSCRIBERS: | ||||
$type = 'subscribers'; | $type = 'subscribers'; | ||||
$fields = $this->newEdgeTransactionFields($xaction); | $fields = $this->newEdgeTransactionFields($xaction); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
$group_id = $xaction->getTransactionGroupID(); | |||||
if (!strlen($group_id)) { | |||||
$group_id = null; | |||||
} else { | |||||
$group_id = (string)$group_id; | |||||
} | |||||
$data[] = array( | $data[] = array( | ||||
'id' => (int)$xaction->getID(), | 'id' => (int)$xaction->getID(), | ||||
'phid' => (string)$xaction->getPHID(), | 'phid' => (string)$xaction->getPHID(), | ||||
'type' => $type, | 'type' => $type, | ||||
'authorPHID' => (string)$xaction->getAuthorPHID(), | 'authorPHID' => (string)$xaction->getAuthorPHID(), | ||||
'objectPHID' => (string)$xaction->getObjectPHID(), | 'objectPHID' => (string)$xaction->getObjectPHID(), | ||||
'dateCreated' => (int)$xaction->getDateCreated(), | 'dateCreated' => (int)$xaction->getDateCreated(), | ||||
'dateModified' => (int)$xaction->getDateModified(), | 'dateModified' => (int)$xaction->getDateModified(), | ||||
'groupID' => $group_id, | |||||
'comments' => $comment_data, | 'comments' => $comment_data, | ||||
'fields' => $fields, | 'fields' => $fields, | ||||
); | ); | ||||
} | } | ||||
$results = array( | $results = array( | ||||
'data' => $data, | 'data' => $data, | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |