Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98998011
PhabricatorAuthFactorProviderEnrollMessageTransaction.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
Sat, Jan 18, 08:38
Size
919 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 08:38 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
23682894
Attached To
rPH Phabricator
PhabricatorAuthFactorProviderEnrollMessageTransaction.php
View Options
<?php
final
class
PhabricatorAuthFactorProviderEnrollMessageTransaction
extends
PhabricatorAuthFactorProviderTransactionType
{
const
TRANSACTIONTYPE
=
'enroll-message'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getEnrollMessage
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setEnrollMessage
(
$value
);
}
public
function
getTitle
()
{
return
pht
(
'%s updated the enroll message.'
,
$this
->
renderAuthor
());
}
public
function
hasChangeDetailView
()
{
return
true
;
}
public
function
getMailDiffSectionHeader
()
{
return
pht
(
'CHANGES TO ENROLL MESSAGE'
);
}
public
function
newChangeDetailView
()
{
$viewer
=
$this
->
getViewer
();
return
id
(
new
PhabricatorApplicationTransactionTextDiffDetailView
())
->
setViewer
(
$viewer
)
->
setOldText
(
$this
->
getOldValue
())
->
setNewText
(
$this
->
getNewValue
());
}
}
Event Timeline
Log In to Comment