Path: blob/master/src/applications/almanac/editor/AlmanacInterfaceEditor.php
12256 views
<?php12final class AlmanacInterfaceEditor3extends AlmanacEditor {45public function getEditorObjectsDescription() {6return pht('Almanac Interface');7}89public function getCreateObjectTitle($author, $object) {10return pht('%s created this interface.', $author);11}1213public function getCreateObjectTitleForFeed($author, $object) {14return pht('%s created %s.', $author, $object);15}1617protected function didCatchDuplicateKeyException(18PhabricatorLiskDAO $object,19array $xactions,20Exception $ex) {2122$errors = array();2324$errors[] = new PhabricatorApplicationTransactionValidationError(25null,26pht('Invalid'),27pht(28'Interfaces must have a unique combination of network, device, '.29'address, and port.'),30null);3132throw new PhabricatorApplicationTransactionValidationException($errors);33}3435}363738