Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98118925
PhabricatorSpacesNamespaceTransaction.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
Thu, Jan 9, 23:54
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jan 11, 23:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23516998
Attached To
rPH Phabricator
PhabricatorSpacesNamespaceTransaction.php
View Options
<?php
final
class
PhabricatorSpacesNamespaceTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'spaces:name'
;
const
TYPE_DEFAULT
=
'spaces:default'
;
public
function
getApplicationName
()
{
return
'spaces'
;
}
public
function
getApplicationTransactionType
()
{
return
PhabricatorSpacesNamespacePHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
null
;
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
$author_phid
=
$this
->
getAuthorPHID
();
switch
(
$this
->
getTransactionType
())
{
case
self
::
TYPE_NAME
:
if
(
$old
===
null
)
{
return
pht
(
'%s created this space.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
else
{
return
pht
(
'%s renamed this space from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
case
self
::
TYPE_DEFAULT
:
return
pht
(
'%s made this the default space.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment