Differential D8286 Diff 19727 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | /* -( Rendering )---------------------------------------------------------- */ | ||||
public function getRequiredHandlePHIDs() { | public function getRequiredHandlePHIDs() { | ||||
$phids = array(); | $phids = array(); | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
$phids[] = array($this->getAuthorPHID()); | $phids[] = array($this->getAuthorPHID()); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case PhabricatorTransactions::TYPE_CUSTOMFIELD: | |||||
$field = $this->getTransactionCustomField(); | |||||
if ($field) { | |||||
$phids[] = $field->getApplicationTransactionRequiredHandlePHIDs( | |||||
$this); | |||||
} | |||||
break; | |||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS: | case PhabricatorTransactions::TYPE_SUBSCRIBERS: | ||||
$phids[] = $old; | $phids[] = $old; | ||||
$phids[] = $new; | $phids[] = $new; | ||||
break; | break; | ||||
case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
$phids[] = ipull($old, 'dst'); | $phids[] = ipull($old, 'dst'); | ||||
$phids[] = ipull($new, 'dst'); | $phids[] = ipull($new, 'dst'); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 512 Lines • Show Last 20 Lines |