Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91623466
PhabricatorPackagesPublisherEditor.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
Tue, Nov 12, 20:28
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Nov 14, 20:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22295150
Attached To
rPH Phabricator
PhabricatorPackagesPublisherEditor.php
View Options
<?php
final
class
PhabricatorPackagesPublisherEditor
extends
PhabricatorPackagesEditor
{
public
function
getEditorObjectsDescription
()
{
return
pht
(
'Package Publishers'
);
}
public
function
getCreateObjectTitle
(
$author
,
$object
)
{
return
pht
(
'%s created this publisher.'
,
$author
);
}
public
function
getCreateObjectTitleForFeed
(
$author
,
$object
)
{
return
pht
(
'%s created %s.'
,
$author
,
$object
);
}
public
function
getTransactionTypes
()
{
$types
=
parent
::
getTransactionTypes
();
$types
[]
=
PhabricatorTransactions
::
TYPE_EDIT_POLICY
;
return
$types
;
}
protected
function
getMailTo
(
PhabricatorLiskDAO
$object
)
{
return
array
();
}
protected
function
didCatchDuplicateKeyException
(
PhabricatorLiskDAO
$object
,
array
$xactions
,
Exception
$ex
)
{
$errors
=
array
();
$errors
[]
=
new
PhabricatorApplicationTransactionValidationError
(
PhabricatorPackagesPublisherKeyTransaction
::
TRANSACTIONTYPE
,
pht
(
'Duplicate'
),
pht
(
'The publisher key "%s" is already in use by another publisher.'
,
$object
->
getPublisherKey
()),
null
);
throw
new
PhabricatorApplicationTransactionValidationException
(
$errors
);
}
}
Event Timeline
Log In to Comment