Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F549420
PhabricatorMacroDisabledTransaction.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
PhabricatorMacroDisabledTransaction.php
View Options
<?php
final
class
PhabricatorMacroDisabledTransaction
extends
PhabricatorMacroTransactionType
{
const
TRANSACTIONTYPE
=
'macro:disabled'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getIsDisabled
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIsDisabled
(
$value
);
}
public
function
getTitle
()
{
if
(
$this
->
getNewValue
())
{
return
pht
(
'%s disabled this macro.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s restored this macro.'
,
$this
->
renderAuthor
());
}
}
public
function
getTitleForFeed
()
{
if
(
$this
->
getNewValue
())
{
return
pht
(
'%s disabled %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
else
{
return
pht
(
'%s restored %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
}
public
function
getIcon
()
{
if
(
$this
->
getNewValue
())
{
return
'fa-ban'
;
}
else
{
return
'fa-check'
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 2:08 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
106006
Default Alt Text
PhabricatorMacroDisabledTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment