Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F463038
AlmanacServiceTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
AlmanacServiceTransaction.php
View Options
<?php
final
class
AlmanacServiceTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'almanac:service:name'
;
const
TYPE_LOCK
=
'almanac:service:lock'
;
public
function
getApplicationName
()
{
return
'almanac'
;
}
public
function
getApplicationTransactionType
()
{
return
AlmanacServicePHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
null
;
}
public
function
getTitle
()
{
$author_phid
=
$this
->
getAuthorPHID
();
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
switch
(
$this
->
getTransactionType
())
{
case
self
::
TYPE_NAME
:
if
(
$old
===
null
)
{
return
pht
(
'%s created this service.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
else
{
return
pht
(
'%s renamed this service from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
break
;
case
self
::
TYPE_LOCK
:
if
(
$new
)
{
return
pht
(
'%s locked this service.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
else
{
return
pht
(
'%s unlocked this service.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
break
;
}
return
parent
::
getTitle
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 6:47 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
72906
Default Alt Text
AlmanacServiceTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment