Differential D21186 Diff 50451 src/applications/differential/xaction/DifferentialRevisionInlineTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionInlineTransaction.php
| Show All 34 Lines | final class DifferentialRevisionInlineTransaction | ||||
| public function getFieldValuesForConduit($object, $data) { | public function getFieldValuesForConduit($object, $data) { | ||||
| $comment = $object->getComment(); | $comment = $object->getComment(); | ||||
| $changeset = $data[$comment->getChangesetID()]; | $changeset = $data[$comment->getChangesetID()]; | ||||
| $diff = $changeset->getDiff(); | $diff = $changeset->getDiff(); | ||||
| $is_done = false; | $is_done = false; | ||||
| switch ($comment->getFixedState()) { | switch ($comment->getFixedState()) { | ||||
| case PhabricatorInlineCommentInterface::STATE_DONE: | case PhabricatorInlineComment::STATE_DONE: | ||||
| case PhabricatorInlineCommentInterface::STATE_UNDRAFT: | case PhabricatorInlineComment::STATE_UNDRAFT: | ||||
| $is_done = true; | $is_done = true; | ||||
| break; | break; | ||||
| } | } | ||||
| return array( | return array( | ||||
| 'diff' => array( | 'diff' => array( | ||||
| 'id' => (int)$diff->getID(), | 'id' => (int)$diff->getID(), | ||||
| 'phid' => $diff->getPHID(), | 'phid' => $diff->getPHID(), | ||||
| Show All 10 Lines | |||||