Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/storage/PhrictionTransaction.php
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($new['phid'])); | $this->renderHandleLink($new['phid'])); | ||||
} | } | ||||
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 self::TYPE_TITLE: | case self::TYPE_TITLE: | ||||
Show All 19 Lines | switch ($this->getTransactionType()) { | ||||
case self::TYPE_DELETE: | case self::TYPE_DELETE: | ||||
return pht( | return pht( | ||||
'%s deleted %s.', | '%s deleted %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 hasChangeDetails() { | public function hasChangeDetails() { | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_CONTENT: | case self::TYPE_CONTENT: | ||||
return true; | return true; | ||||
} | } | ||||
return parent::hasChangeDetails(); | return parent::hasChangeDetails(); | ||||
Show All 27 Lines |