Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110492480
PhabricatorRepositoryDangerousTransaction.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
Sat, Apr 26, 14:02
Size
708 B
Mime Type
text/x-php
Expires
Mon, Apr 28, 14:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25823803
Attached To
rPH Phabricator
PhabricatorRepositoryDangerousTransaction.php
View Options
<?php
final
class
PhabricatorRepositoryDangerousTransaction
extends
PhabricatorRepositoryTransactionType
{
const
TRANSACTIONTYPE
=
'repo:dangerous'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
shouldAllowDangerousChanges
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setDetail
(
'allow-dangerous-changes'
,
$value
);
}
public
function
getTitle
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s disabled protection against dangerous changes.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s enabled protection against dangerous changes.'
,
$this
->
renderAuthor
());
}
}
}
Event Timeline
Log In to Comment