Changeset View
Changeset View
Standalone View
Standalone View
src/applications/macro/storage/PhabricatorMacroTransaction.php
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
$this->renderHandleLink($new)); | $this->renderHandleLink($new)); | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
return parent::getTitle(); | return parent::getTitle(); | ||||
} | } | ||||
public function getTitleForFeed(PhabricatorFeedStory $story) { | public function getTitleForFeed() { | ||||
$author_phid = $this->getAuthorPHID(); | $author_phid = $this->getAuthorPHID(); | ||||
$object_phid = $this->getObjectPHID(); | $object_phid = $this->getObjectPHID(); | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case PhabricatorMacroTransactionType::TYPE_NAME: | case PhabricatorMacroTransactionType::TYPE_NAME: | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
return pht( | return pht( | ||||
'%s disabled the audio for %s.', | '%s disabled the audio for %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
} | } | ||||
} | } | ||||
return parent::getTitleForFeed($story); | return parent::getTitleForFeed(); | ||||
} | } | ||||
public function getActionName() { | public function getActionName() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case PhabricatorMacroTransactionType::TYPE_NAME: | case PhabricatorMacroTransactionType::TYPE_NAME: | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |