Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93480694
PhabricatorProjectWorkboardTransaction.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
Fri, Nov 29, 02:37
Size
806 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 02:37 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22646881
Attached To
rPH Phabricator
PhabricatorProjectWorkboardTransaction.php
View Options
<?php
final
class
PhabricatorProjectWorkboardTransaction
extends
PhabricatorProjectTransactionType
{
const
TRANSACTIONTYPE
=
'project:hasworkboard'
;
public
function
generateOldValue
(
$object
)
{
return
(
int
)
$object
->
getHasWorkboard
();
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
(
int
)
$value
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setHasWorkboard
(
$value
);
}
public
function
getTitle
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s enabled the workboard for this project.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s disabled the workboard for this project.'
,
$this
->
renderAuthor
());
}
}
public
function
shouldHide
()
{
return
true
;
}
}
Event Timeline
Log In to Comment