Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108009459
PhabricatorAuthPasswordRevokeTransaction.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
Sun, Apr 13, 03:11
Size
726 B
Mime Type
text/x-php
Expires
Tue, Apr 15, 03:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25502386
Attached To
rPH Phabricator
PhabricatorAuthPasswordRevokeTransaction.php
View Options
<?php
final
class
PhabricatorAuthPasswordRevokeTransaction
extends
PhabricatorAuthPasswordTransactionType
{
const
TRANSACTIONTYPE
=
'password.revoke'
;
public
function
generateOldValue
(
$object
)
{
return
(
bool
)
$object
->
getIsRevoked
();
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
(
bool
)
$value
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIsRevoked
((
int
)
$value
);
}
public
function
getTitle
()
{
if
(
$this
->
getNewValue
())
{
return
pht
(
'%s revoked this password.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s removed this password from the revocation list.'
,
$this
->
renderAuthor
());
}
}
}
Event Timeline
Log In to Comment