Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F552660
FundInitiativeStatusTransaction.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
FundInitiativeStatusTransaction.php
View Options
<?php
final
class
FundInitiativeStatusTransaction
extends
FundInitiativeTransactionType
{
const
TRANSACTIONTYPE
=
'fund:status'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getStatus
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setStatus
(
$value
);
}
public
function
getTitle
()
{
if
(
$this
->
getNewValue
()
==
FundInitiative
::
STATUS_CLOSED
)
{
return
pht
(
'%s closed this initiative.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s reopened this initiative.'
,
$this
->
renderAuthor
());
}
}
public
function
getTitleForFeed
()
{
if
(
$this
->
getNewValue
()
==
FundInitiative
::
STATUS_CLOSED
)
{
return
pht
(
'%s closed %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
else
{
return
pht
(
'%s reopened %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
}
public
function
getIcon
()
{
if
(
$this
->
getNewValue
()
==
FundInitiative
::
STATUS_CLOSED
)
{
return
'fa-ban'
;
}
else
{
return
'fa-check'
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 4:36 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
104853
Default Alt Text
FundInitiativeStatusTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment