Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92795869
AlmanacNetworkTransaction.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
Sat, Nov 23, 19:07
Size
964 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 19:07 (2 d)
Engine
blob
Format
Raw Data
Handle
22515044
Attached To
rPH Phabricator
AlmanacNetworkTransaction.php
View Options
<?php
final
class
AlmanacNetworkTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'almanac:network:name'
;
public
function
getApplicationName
()
{
return
'almanac'
;
}
public
function
getApplicationTransactionType
()
{
return
AlmanacNetworkPHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
null
;
}
public
function
getTitle
()
{
$author_phid
=
$this
->
getAuthorPHID
();
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
switch
(
$this
->
getTransactionType
())
{
case
PhabricatorTransactions
::
TYPE_CREATE
:
return
pht
(
'%s created this network.'
,
$this
->
renderHandleLink
(
$author_phid
));
case
self
::
TYPE_NAME
:
return
pht
(
'%s renamed this network from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment