Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F464155
AlmanacInterfaceEditor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
872 B
Referenced Files
None
Subscribers
None
AlmanacInterfaceEditor.php
View Options
<?php
final
class
AlmanacInterfaceEditor
extends
AlmanacEditor
{
public
function
getEditorObjectsDescription
()
{
return
pht
(
'Almanac Interface'
);
}
public
function
getCreateObjectTitle
(
$author
,
$object
)
{
return
pht
(
'%s created this interface.'
,
$author
);
}
public
function
getCreateObjectTitleForFeed
(
$author
,
$object
)
{
return
pht
(
'%s created %s.'
,
$author
,
$object
);
}
protected
function
didCatchDuplicateKeyException
(
PhabricatorLiskDAO
$object
,
array
$xactions
,
Exception
$ex
)
{
$errors
=
array
();
$errors
[]
=
new
PhabricatorApplicationTransactionValidationError
(
null
,
pht
(
'Invalid'
),
pht
(
'Interfaces must have a unique combination of network, device, '
.
'address, and port.'
),
null
);
throw
new
PhabricatorApplicationTransactionValidationException
(
$errors
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 8:42 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
73618
Default Alt Text
AlmanacInterfaceEditor.php (872 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment