Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105435158
AlmanacInterfaceEditor.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
Mon, Mar 17, 05:32
Size
872 B
Mime Type
text/x-php
Expires
Wed, Mar 19, 05:32 (2 d)
Engine
blob
Format
Raw Data
Handle
24978319
Attached To
rPH Phabricator
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
);
}
}
Event Timeline
Log In to Comment