Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93246683
PhameBlogHeaderImageTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 27, 08:09
Size
756 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 08:09 (2 d)
Engine
blob
Format
Raw Data
Handle
22602685
Attached To
rPH Phabricator
PhameBlogHeaderImageTransaction.php
View Options
<?php
final
class
PhameBlogHeaderImageTransaction
extends
PhameBlogTransactionType
{
// TODO: Migrate these transactions ha ha .... ha
const
TRANSACTIONTYPE
=
'phame.blog.profile.image'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getHeaderImagePHID
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setHeaderImagePHID
(
$value
);
}
public
function
getTitle
()
{
return
pht
(
'%s changed the header image for this blog.'
,
$this
->
renderAuthor
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s changed the header image for blog %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
public
function
getIcon
()
{
return
'fa-camera'
;
}
}
Event Timeline
Log In to Comment