Differential D20508 Diff 48942 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 247 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
switch ($xaction->getMetadataValue('edge:type')) { | switch ($xaction->getMetadataValue('edge:type')) { | ||||
case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST: | case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST: | ||||
$type = 'projects'; | $type = 'projects'; | ||||
$fields = $this->newEdgeTransactionFields($xaction); | $fields = $this->newEdgeTransactionFields($xaction); | ||||
break; | break; | ||||
} | } | ||||
break; | break; | ||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS: | |||||
$type = 'subscribers'; | |||||
$fields = $this->newEdgeTransactionFields($xaction); | |||||
break; | |||||
} | } | ||||
} | } | ||||
$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(), | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |