Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111897121
PhabricatorAuthContactNumberEditor.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, May 5, 21:16
Size
1004 B
Mime Type
text/x-php
Expires
Wed, May 7, 21:16 (2 d)
Engine
blob
Format
Raw Data
Handle
25992630
Attached To
rPH Phabricator
PhabricatorAuthContactNumberEditor.php
View Options
<?php
final
class
PhabricatorAuthContactNumberEditor
extends
PhabricatorApplicationTransactionEditor
{
public
function
getEditorApplicationClass
()
{
return
'PhabricatorAuthApplication'
;
}
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
);
}
}
Event Timeline
Log In to Comment