Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93293575
AlmanacTransaction.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, 16:52
Size
1011 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 16:52 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22602909
Attached To
rPH Phabricator
AlmanacTransaction.php
View Options
<?php
abstract
class
AlmanacTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_PROPERTY_UPDATE
=
'almanac:property:update'
;
const
TYPE_PROPERTY_REMOVE
=
'almanac:property:remove'
;
public
function
getApplicationName
()
{
return
'almanac'
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
null
;
}
public
function
getTitle
()
{
$author_phid
=
$this
->
getAuthorPHID
();
switch
(
$this
->
getTransactionType
())
{
case
self
::
TYPE_PROPERTY_UPDATE
:
$property_key
=
$this
->
getMetadataValue
(
'almanac.property'
);
return
pht
(
'%s updated the property "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$property_key
);
case
self
::
TYPE_PROPERTY_REMOVE
:
$property_key
=
$this
->
getMetadataValue
(
'almanac.property'
);
return
pht
(
'%s deleted the property "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$property_key
);
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment