Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
1.0 kB · 38 lines
PHP
123456789101112131415161718192021222324252627282930313233343536373839<?php
final class PhabricatorAuthContactNumberEditor extends PhabricatorApplicationTransactionEditor {
public function getEditorApplicationClass() { return PhabricatorAuthApplication::class; }
public function getEditorObjectsDescription() { return pht('Contact Numbers'); }
public function getCreateObjectTitle($author, $object) { return pht('%s created this contact number.', $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( PhabricatorAuthContactNumberNumberTransaction::TRANSACTIONTYPE, pht('Duplicate'), pht('This contact number is already in use.'), null);
throw new PhabricatorApplicationTransactionValidationException($errors); }
}