Differential D8898 Diff 21120 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 305 Lines • ▼ Show 20 Lines | if ($this->getRenderingTarget() == self::TARGET_TEXT) { | ||||
$handles = array_select_keys($this->getHandles(), $phids); | $handles = array_select_keys($this->getHandles(), $phids); | ||||
return id(new SubscriptionListStringBuilder()) | return id(new SubscriptionListStringBuilder()) | ||||
->setHandles($handles) | ->setHandles($handles) | ||||
->setObjectPHID($this->getPHID()) | ->setObjectPHID($this->getPHID()) | ||||
->buildTransactionString($change_type); | ->buildTransactionString($change_type); | ||||
} | } | ||||
} | } | ||||
private function renderPolicyName($phid, $state = 'old') { | protected function renderPolicyName($phid, $state = 'old') { | ||||
$policy = PhabricatorPolicy::newFromPolicyAndHandle( | $policy = PhabricatorPolicy::newFromPolicyAndHandle( | ||||
$phid, | $phid, | ||||
$this->getHandleIfExists($phid)); | $this->getHandleIfExists($phid)); | ||||
if ($this->renderingTarget == self::TARGET_HTML) { | if ($this->renderingTarget == self::TARGET_HTML) { | ||||
switch ($policy->getType()) { | switch ($policy->getType()) { | ||||
case PhabricatorPolicyType::TYPE_CUSTOM: | case PhabricatorPolicyType::TYPE_CUSTOM: | ||||
$policy->setHref('/transactions/'.$state.'/'.$this->getPHID().'/'); | $policy->setHref('/transactions/'.$state.'/'.$this->getPHID().'/'); | ||||
$policy->setWorkflow(true); | $policy->setWorkflow(true); | ||||
▲ Show 20 Lines • Show All 614 Lines • Show Last 20 Lines |