Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93678901
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 30, 16:03
Size
989 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 16:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22683508
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