Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3295216
PhabricatorPackagesPackageEditor.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
1 KB
Referenced Files
None
Subscribers
None
PhabricatorPackagesPackageEditor.php
View Options
<?php
final
class
PhabricatorPackagesPackageEditor
extends
PhabricatorPackagesEditor
{
public
function
getEditorObjectsDescription
(
)
{
return
pht
(
'Package Packages'
)
;
}
public
function
getCreateObjectTitle
(
$author
,
$object
)
{
return
pht
(
'%s created this package.'
,
$author
)
;
}
public
function
getCreateObjectTitleForFeed
(
$author
,
$object
)
{
return
pht
(
'%s created %s.'
,
$author
,
$object
)
;
}
public
function
getTransactionTypes
(
)
{
$types
=
parent
::
getTransactionTypes
(
)
;
$types
[
]
=
PhabricatorTransactions
::
TYPE_VIEW_POLICY
;
$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
(
PhabricatorPackagesPackageKeyTransaction
::
TRANSACTIONTYPE
,
pht
(
'Duplicate'
)
,
pht
(
'The package key "%s" is already in use by another package provided '
.
'by this publisher.'
,
$object
->
getPackageKey
(
)
)
,
null
)
;
throw
new
PhabricatorApplicationTransactionValidationException
(
$errors
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Mar 27, 01:31 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115087
Default Alt Text
PhabricatorPackagesPackageEditor.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment