Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92675703
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
Fri, Nov 22, 16:17
Size
726 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 16:17 (2 d)
Engine
blob
Format
Raw Data
Handle
22484417
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