Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78390708
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
Tue, Aug 20, 13:43
Size
806 B
Mime Type
text/x-php
Expires
Thu, Aug 22, 13:43 (2 d)
Engine
blob
Format
Raw Data
Handle
20038229
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