Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F470551
AlmanacNetworkNameTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1011 B
Referenced Files
None
Subscribers
None
AlmanacNetworkNameTransaction.php
View Options
<?php
final
class
AlmanacNetworkNameTransaction
extends
AlmanacNetworkTransactionType
{
const
TRANSACTIONTYPE
=
'almanac:network:name'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getName
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setName
(
$value
);
}
public
function
getTitle
()
{
return
pht
(
'%s renamed this network from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderOldValue
(),
$this
->
renderNewValue
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s renamed %s from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
(),
$this
->
renderOldValue
(),
$this
->
renderNewValue
());
}
public
function
validateTransactions
(
$object
,
array
$xactions
)
{
$errors
=
array
();
if
(
$this
->
isEmptyTextTransaction
(
$object
->
getName
(),
$xactions
))
{
$errors
[]
=
$this
->
newRequiredError
(
pht
(
'Network name is required.'
));
}
return
$errors
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 11:14 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
82079
Default Alt Text
AlmanacNetworkNameTransaction.php (1011 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment