Differential D18628 Diff 44740 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 1,099 Lines • ▼ Show 20 Lines | if ($this->getIsHeraldEditor()) { | ||||
// If Herald did not generate transactions, we may still need to handle | // If Herald did not generate transactions, we may still need to handle | ||||
// "Send an Email" rules. | // "Send an Email" rules. | ||||
$adapter = $this->getHeraldAdapter(); | $adapter = $this->getHeraldAdapter(); | ||||
$this->heraldEmailPHIDs = $adapter->getEmailPHIDs(); | $this->heraldEmailPHIDs = $adapter->getEmailPHIDs(); | ||||
$this->heraldForcedEmailPHIDs = $adapter->getForcedEmailPHIDs(); | $this->heraldForcedEmailPHIDs = $adapter->getForcedEmailPHIDs(); | ||||
} | } | ||||
$this->didApplyTransactions($xactions); | $xactions = $this->didApplyTransactions($object, $xactions); | ||||
if ($object instanceof PhabricatorCustomFieldInterface) { | if ($object instanceof PhabricatorCustomFieldInterface) { | ||||
// Maybe this makes more sense to move into the search index itself? For | // Maybe this makes more sense to move into the search index itself? For | ||||
// now I'm putting it here since I think we might end up with things that | // now I'm putting it here since I think we might end up with things that | ||||
// need it to be up to date once the next page loads, but if we don't go | // need it to be up to date once the next page loads, but if we don't go | ||||
// there we could move it into search once search moves to the daemons. | // there we could move it into search once search moves to the daemons. | ||||
// It now happens in the search indexer as well, but the search indexer is | // It now happens in the search indexer as well, but the search indexer is | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | public function publishTransactions( | ||||
// retrying. | // retrying. | ||||
foreach ($messages as $mail) { | foreach ($messages as $mail) { | ||||
$mail->save(); | $mail->save(); | ||||
} | } | ||||
return $xactions; | return $xactions; | ||||
} | } | ||||
protected function didApplyTransactions(array $xactions) { | protected function didApplyTransactions($object, array $xactions) { | ||||
// Hook for subclasses. | // Hook for subclasses. | ||||
return; | return $xactions; | ||||
} | } | ||||
/** | /** | ||||
* Determine if the editor should hold a read lock on the object while | * Determine if the editor should hold a read lock on the object while | ||||
* applying a transaction. | * applying a transaction. | ||||
* | * | ||||
* If the editor does not hold a lock, two editors may read an object at the | * If the editor does not hold a lock, two editors may read an object at the | ||||
▲ Show 20 Lines • Show All 2,620 Lines • Show Last 20 Lines |