Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phame / xaction / PhamePostHeaderImageTransaction.php
blob2b9631cdc4dd5947e3fb0bb1a9befca103cc56e1
1 <?php
3 final class PhamePostHeaderImageTransaction
4 extends PhamePostTransactionType {
6 const TRANSACTIONTYPE = 'phame.post.headerimage';
8 public function generateOldValue($object) {
9 return $object->getHeaderImagePHID();
12 public function applyInternalEffects($object, $value) {
13 $object->setHeaderImagePHID($value);
16 public function getTitle() {
17 return pht(
18 '%s changed the header image for this post.',
19 $this->renderAuthor());
22 public function getTitleForFeed() {
23 return pht(
24 '%s changed the header image for post %s.',
25 $this->renderAuthor(),
26 $this->renderObject());
29 public function getIcon() {
30 return 'fa-camera';