Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96617055
PhabricatorRepositorySymbolLanguagesTransaction.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, Dec 28, 23:55
Size
882 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 23:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23200762
Attached To
rPH Phabricator
PhabricatorRepositorySymbolLanguagesTransaction.php
View Options
<?php
final
class
PhabricatorRepositorySymbolLanguagesTransaction
extends
PhabricatorRepositoryTransactionType
{
const
TRANSACTIONTYPE
=
'repo:symbol-language'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getSymbolLanguages
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setDetail
(
'symbol-languages'
,
$value
);
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
if
(
$old
)
{
$display_old
=
implode
(
', '
,
$old
);
}
else
{
$display_old
=
pht
(
'Any'
);
}
if
(
$new
)
{
$display_new
=
implode
(
', '
,
$new
);
}
else
{
$display_new
=
pht
(
'Any'
);
}
return
pht
(
'%s changed indexed languages from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderValue
(
$display_old
),
$this
->
renderValue
(
$display_new
));
}
}
Event Timeline
Log In to Comment