Differential D19920 Diff 47561 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Show First 20 Lines • Show All 3,760 Lines • ▼ Show 20 Lines | foreach ($nodes as $node) { | ||||
// TODO: At least for now, don't record inverse edge transactions | // TODO: At least for now, don't record inverse edge transactions | ||||
// for users (for example, "alincoln joined project X"): Feed fills | // for users (for example, "alincoln joined project X"): Feed fills | ||||
// this role instead. | // this role instead. | ||||
continue; | continue; | ||||
} | } | ||||
$editor = $node->getApplicationTransactionEditor(); | $editor = $node->getApplicationTransactionEditor(); | ||||
$template = $node->getApplicationTransactionTemplate(); | $template = $node->getApplicationTransactionTemplate(); | ||||
$target = $node->getApplicationTransactionObject(); | |||||
if (isset($add[$node->getPHID()])) { | if (isset($add[$node->getPHID()])) { | ||||
$edge_edit_type = '+'; | $edge_edit_type = '+'; | ||||
} else { | } else { | ||||
$edge_edit_type = '-'; | $edge_edit_type = '-'; | ||||
} | } | ||||
$template | $template | ||||
Show All 9 Lines | foreach ($nodes as $node) { | ||||
->setContinueOnMissingFields(true) | ->setContinueOnMissingFields(true) | ||||
->setParentMessageID($this->getParentMessageID()) | ->setParentMessageID($this->getParentMessageID()) | ||||
->setIsInverseEdgeEditor(true) | ->setIsInverseEdgeEditor(true) | ||||
->setIsSilent($this->getIsSilent()) | ->setIsSilent($this->getIsSilent()) | ||||
->setActor($this->requireActor()) | ->setActor($this->requireActor()) | ||||
->setActingAsPHID($this->getActingAsPHID()) | ->setActingAsPHID($this->getActingAsPHID()) | ||||
->setContentSource($this->getContentSource()); | ->setContentSource($this->getContentSource()); | ||||
$editor->applyTransactions($target, array($template)); | $editor->applyTransactions($node, array($template)); | ||||
} | } | ||||
} | } | ||||
/* -( Workers )------------------------------------------------------------ */ | /* -( Workers )------------------------------------------------------------ */ | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 908 Lines • Show Last 20 Lines |