Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91660086
PhabricatorOwnersPackageAuditingTransaction.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
Wed, Nov 13, 05:02
Size
735 B
Mime Type
text/x-php
Expires
Fri, Nov 15, 05:02 (2 d)
Engine
blob
Format
Raw Data
Handle
22291988
Attached To
rPH Phabricator
PhabricatorOwnersPackageAuditingTransaction.php
View Options
<?php
final
class
PhabricatorOwnersPackageAuditingTransaction
extends
PhabricatorOwnersPackageTransactionType
{
const
TRANSACTIONTYPE
=
'owners.auditing'
;
public
function
generateOldValue
(
$object
)
{
return
(
int
)
$object
->
getAuditingEnabled
();
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
(
int
)
$value
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setAuditingEnabled
(
$value
);
}
public
function
getTitle
()
{
if
(
$this
->
getNewValue
())
{
return
pht
(
'%s enabled auditing for this package.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s disabled auditing for this package.'
,
$this
->
renderAuthor
());
}
}
}
Event Timeline
Log In to Comment