Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phame / xaction / PhameBlogHeaderImageTransaction.php
blobb328b9aca5271090e9f4dbc0812d752d4a94322c
1 <?php
3 final class PhameBlogHeaderImageTransaction
4 extends PhameBlogTransactionType {
6 // TODO: Migrate these transactions ha ha .... ha
7 const TRANSACTIONTYPE = 'phame.blog.profile.image';
9 public function generateOldValue($object) {
10 return $object->getHeaderImagePHID();
13 public function applyInternalEffects($object, $value) {
14 $object->setHeaderImagePHID($value);
17 public function getTitle() {
18 return pht(
19 '%s changed the header image for this blog.',
20 $this->renderAuthor());
23 public function getTitleForFeed() {
24 return pht(
25 '%s changed the header image for blog %s.',
26 $this->renderAuthor(),
27 $this->renderObject());
30 public function getIcon() {
31 return 'fa-camera';