Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92795525
AlmanacNamespaceTransaction.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:02
Size
989 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 19:02 (2 d)
Engine
blob
Format
Raw Data
Handle
22515626
Attached To
rPH Phabricator
AlmanacNamespaceTransaction.php
View Options
<?php
final
class
AlmanacNamespaceTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'almanac:namespace:name'
;
public
function
getApplicationName
()
{
return
'almanac'
;
}
public
function
getApplicationTransactionType
()
{
return
AlmanacNamespacePHIDType
::
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 namespace.'
,
$this
->
renderHandleLink
(
$author_phid
));
break
;
case
self
::
TYPE_NAME
:
return
pht
(
'%s renamed this namespace from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment