Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/xaction/PhabricatorUserNotifyTransaction.php
- This file was added.
| <?php | |||||
| final class PhabricatorUserNotifyTransaction | |||||
| extends PhabricatorUserTransactionType { | |||||
| const TRANSACTIONTYPE = 'notify'; | |||||
| public function generateOldValue($object) { | |||||
| return null; | |||||
| } | |||||
| public function generateNewValue($object, $value) { | |||||
| return $value; | |||||
| } | |||||
| public function getTitle() { | |||||
| return pht( | |||||
| '%s sent this user a test notification.', | |||||
| $this->renderAuthor()); | |||||
| } | |||||
| public function getTitleForFeed() { | |||||
| return $this->getNewValue(); | |||||
| } | |||||
| public function shouldHideForFeed() { | |||||
| return false; | |||||
| } | |||||
| public function shouldHideForMail() { | |||||
| return true; | |||||
| } | |||||
| } | |||||