Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F449449
PhabricatorCalendarImportNameTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
945 B
Referenced Files
None
Subscribers
None
PhabricatorCalendarImportNameTransaction.php
View Options
<?php
final
class
PhabricatorCalendarImportNameTransaction
extends
PhabricatorCalendarImportTransactionType
{
const
TRANSACTIONTYPE
=
'calendar.import.name'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getName
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setName
(
$value
);
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
if
(!
strlen
(
$old
))
{
return
pht
(
'%s named this import %s.'
,
$this
->
renderAuthor
(),
$this
->
renderNewValue
());
}
else
if
(!
strlen
(
$new
))
{
return
pht
(
'%s removed the name of this import (was: %s).'
,
$this
->
renderAuthor
(),
$this
->
renderOldValue
());
}
else
{
return
pht
(
'%s renamed this import from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderOldValue
(),
$this
->
renderNewValue
());
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 7:24 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
67475
Default Alt Text
PhabricatorCalendarImportNameTransaction.php (945 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment