Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91005546
PhamePostHeaderImageTransaction.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 6, 20:50
Size
702 B
Mime Type
text/x-php
Expires
Fri, Nov 8, 20:50 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22178091
Attached To
rPH Phabricator
PhamePostHeaderImageTransaction.php
View Options
<?php
final
class
PhamePostHeaderImageTransaction
extends
PhamePostTransactionType
{
const
TRANSACTIONTYPE
=
'phame.post.headerimage'
;
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 post.'
,
$this
->
renderAuthor
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s changed the header image for post %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
public
function
getIcon
()
{
return
'fa-camera'
;
}
}
Event Timeline
Log In to Comment