Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96374820
PhabricatorCalendarImportDisableTransaction.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
Thu, Dec 26, 02:49
Size
628 B
Mime Type
text/x-php
Expires
Sat, Dec 28, 02:49 (2 d)
Engine
blob
Format
Raw Data
Handle
23158875
Attached To
rPH Phabricator
PhabricatorCalendarImportDisableTransaction.php
View Options
<?php
final
class
PhabricatorCalendarImportDisableTransaction
extends
PhabricatorCalendarImportTransactionType
{
const
TRANSACTIONTYPE
=
'calendar.import.disable'
;
public
function
generateOldValue
(
$object
)
{
return
(
int
)
$object
->
getIsDisabled
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIsDisabled
((
int
)
$value
);
}
public
function
getTitle
()
{
if
(
$this
->
getNewValue
())
{
return
pht
(
'%s disabled this import.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s enabled this import.'
,
$this
->
renderAuthor
());
}
}
}
Event Timeline
Log In to Comment