Differential D17191 Diff 41341 src/applications/transactions/storage/PhabricatorModularTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorModularTransaction.php
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | /* final */ public function getTitle() { | ||||
$title = $this->getTransactionImplementation()->getTitle(); | $title = $this->getTransactionImplementation()->getTitle(); | ||||
if ($title !== null) { | if ($title !== null) { | ||||
return $title; | return $title; | ||||
} | } | ||||
return parent::getTitle(); | return parent::getTitle(); | ||||
} | } | ||||
/* final */ public function getActionName() { | |||||
$action = $this->getTransactionImplementation()->getActionName(); | |||||
if ($action !== null) { | |||||
return $action; | |||||
} | |||||
return parent::getActionName(); | |||||
} | |||||
/* final */ public function getActionStrength() { | |||||
$strength = $this->getTransactionImplementation()->getActionStrength(); | |||||
if ($strength !== null) { | |||||
return $strength; | |||||
} | |||||
return parent::getActionStrength(); | |||||
} | |||||
public function getTitleForMail() { | public function getTitleForMail() { | ||||
$old_target = $this->getRenderingTarget(); | $old_target = $this->getRenderingTarget(); | ||||
$new_target = self::TARGET_TEXT; | $new_target = self::TARGET_TEXT; | ||||
$this->setRenderingTarget($new_target); | $this->setRenderingTarget($new_target); | ||||
$title = $this->getTitle(); | $title = $this->getTitle(); | ||||
$this->setRenderingTarget($old_target); | $this->setRenderingTarget($old_target); | ||||
return $title; | return $title; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |