Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892553
PhabricatorSpacesNamespaceArchiveTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorSpacesNamespaceArchiveTransaction.php
View Options
<?php
final
class
PhabricatorSpacesNamespaceArchiveTransaction
extends
PhabricatorSpacesNamespaceTransactionType
{
const
TRANSACTIONTYPE
=
'spaces:archive'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getIsArchived
(
)
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIsArchived
(
(int)
$value
)
;
}
public
function
getTitle
(
)
{
$new
=
$this
->
getNewValue
(
)
;
if
(
$new
)
{
return
pht
(
'%s archived this space.'
,
$this
->
renderAuthor
(
)
)
;
}
else
{
return
pht
(
'%s activated this space.'
,
$this
->
renderAuthor
(
)
)
;
}
}
public
function
getTitleForFeed
(
)
{
$new
=
$this
->
getNewValue
(
)
;
if
(
$new
)
{
return
pht
(
'%s archived space %s.'
,
$this
->
renderAuthor
(
)
,
$this
->
renderObject
(
)
)
;
}
else
{
return
pht
(
'%s activated space %s.'
,
$this
->
renderAuthor
(
)
,
$this
->
renderObject
(
)
)
;
}
}
public
function
getIcon
(
)
{
$new
=
$this
->
getNewValue
(
)
;
if
(
$new
)
{
return
'fa-ban'
;
}
else
{
return
'fa-check'
;
}
}
public
function
getColor
(
)
{
$new
=
$this
->
getNewValue
(
)
;
if
(
$new
)
{
return
'indigo'
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 16:59 (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126728
Default Alt Text
PhabricatorSpacesNamespaceArchiveTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment