Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891450
PhortuneAccountEmailEditor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
943 B
Referenced Files
None
Subscribers
None
PhortuneAccountEmailEditor.php
View Options
<?php
final
class
PhortuneAccountEmailEditor
extends
PhabricatorApplicationTransactionEditor
{
public
function
getEditorApplicationClass
(
)
{
return
PhabricatorPhortuneApplication
::
class
;
}
public
function
getEditorObjectsDescription
(
)
{
return
pht
(
'Phortune Account Emails'
)
;
}
public
function
getCreateObjectTitle
(
$author
,
$object
)
{
return
pht
(
'%s created this account email.'
,
$author
)
;
}
protected
function
didCatchDuplicateKeyException
(
PhabricatorLiskDAO
$object
,
array
$xactions
,
Exception
$ex
)
{
$errors
=
array
(
)
;
$errors
[
]
=
new
PhabricatorApplicationTransactionValidationError
(
PhortuneAccountEmailAddressTransaction
::
TRANSACTIONTYPE
,
pht
(
'Duplicate'
)
,
pht
(
'The email address "%s" is already attached to this account.'
,
$object
->
getAddress
(
)
)
,
null
)
;
throw
new
PhabricatorApplicationTransactionValidationException
(
$errors
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 15:13 (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125864
Default Alt Text
PhortuneAccountEmailEditor.php (943 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment