Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96536469
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
Fri, Dec 27, 18:43
Size
708 B
Mime Type
text/x-php
Expires
Sun, Dec 29, 18:43 (2 d)
Engine
blob
Format
Raw Data
Handle
23200350
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