Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97894477
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
Tue, Jan 7, 07:24
Size
1011 B
Mime Type
text/x-php
Expires
Thu, Jan 9, 07:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23433719
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