Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548616
PhabricatorProjectStatusTransaction.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
PhabricatorProjectStatusTransaction.php
View Options
<?php
final
class
PhabricatorProjectStatusTransaction
extends
PhabricatorProjectTransactionType
{
const
TRANSACTIONTYPE
=
'project:status'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getStatus
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setStatus
(
$value
);
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
if
(
$old
==
0
)
{
return
pht
(
'%s archived this project.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s activated this project.'
,
$this
->
renderAuthor
());
}
}
public
function
getTitleForFeed
()
{
$old
=
$this
->
getOldValue
();
if
(
$old
==
0
)
{
return
pht
(
'%s archived %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
else
{
return
pht
(
'%s activated %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
}
public
function
getColor
()
{
$old
=
$this
->
getOldValue
();
if
(
$old
==
0
)
{
return
'red'
;
}
else
{
return
'green'
;
}
}
public
function
getIcon
()
{
$old
=
$this
->
getOldValue
();
if
(
$old
==
0
)
{
return
'fa-ban'
;
}
else
{
return
'fa-check'
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:52 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121891
Default Alt Text
PhabricatorProjectStatusTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment