Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F452706
PhabricatorAuthPasswordRevokeTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
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
());
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 1:04 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
68987
Default Alt Text
PhabricatorAuthPasswordRevokeTransaction.php (726 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment