Differential D11234 Diff 27012 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 794 Lines • ▼ Show 20 Lines | final public function applyTransactions( | ||||
if (!$this->getDisableEmail()) { | if (!$this->getDisableEmail()) { | ||||
if ($this->shouldSendMail($object, $xactions)) { | if ($this->shouldSendMail($object, $xactions)) { | ||||
$mail = $this->sendMail($object, $xactions); | $mail = $this->sendMail($object, $xactions); | ||||
} | } | ||||
} | } | ||||
if ($this->supportsSearch()) { | if ($this->supportsSearch()) { | ||||
id(new PhabricatorSearchIndexer()) | id(new PhabricatorSearchIndexer()) | ||||
->queueDocumentForIndexing($object->getPHID()); | ->queueDocumentForIndexing( | ||||
$object->getPHID(), | |||||
$this->getSearchContextParameter($object, $xactions)); | |||||
} | } | ||||
if ($this->shouldPublishFeedStory($object, $xactions)) { | if ($this->shouldPublishFeedStory($object, $xactions)) { | ||||
$mailed = array(); | $mailed = array(); | ||||
if ($mail) { | if ($mail) { | ||||
$mailed = $mail->buildRecipientList(); | $mailed = $mail->buildRecipientList(); | ||||
} | } | ||||
$this->publishFeedStory( | $this->publishFeedStory( | ||||
▲ Show 20 Lines • Show All 1,538 Lines • ▼ Show 20 Lines | /* -( Search Index )------------------------------------------------------- */ | ||||
/** | /** | ||||
* @task search | * @task search | ||||
*/ | */ | ||||
protected function supportsSearch() { | protected function supportsSearch() { | ||||
return false; | return false; | ||||
} | } | ||||
/** | |||||
* @task search | |||||
*/ | |||||
protected function getSearchContextParameter( | |||||
PhabricatorLiskDAO $object, | |||||
array $xactions) { | |||||
return null; | |||||
} | |||||
/* -( Herald Integration )-------------------------------------------------- */ | /* -( Herald Integration )-------------------------------------------------- */ | ||||
protected function shouldApplyHeraldRules( | protected function shouldApplyHeraldRules( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
array $xactions) { | array $xactions) { | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |