Differential D16251 Diff 39094 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 92 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(); | ||||
} | } | ||||
public function getTitleForMail() { | |||||
$old_target = $this->getRenderingTarget(); | |||||
$new_target = self::TARGET_TEXT; | |||||
$this->setRenderingTarget($new_target); | |||||
$title = $this->getTitle(); | |||||
$this->setRenderingTarget($old_target); | |||||
return $title; | |||||
} | |||||
final public function getTitleForFeed() { | final public function getTitleForFeed() { | ||||
$title = $this->getTransactionImplementation()->getTitleForFeed(); | $title = $this->getTransactionImplementation()->getTitleForFeed(); | ||||
if ($title !== null) { | if ($title !== null) { | ||||
return $title; | return $title; | ||||
} | } | ||||
return parent::getTitleForFeed(); | return parent::getTitleForFeed(); | ||||
} | } | ||||
Show All 35 Lines |