Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895027
PhabricatorPackagesVersionEditor.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
PhabricatorPackagesVersionEditor.php
View Options
<?php
final
class
PhabricatorPackagesVersionEditor
extends
PhabricatorPackagesEditor
{
public
function
getEditorObjectsDescription
(
)
{
return
pht
(
'Package Versions'
)
;
}
public
function
getCreateObjectTitle
(
$author
,
$object
)
{
return
pht
(
'%s created this version.'
,
$author
)
;
}
public
function
getCreateObjectTitleForFeed
(
$author
,
$object
)
{
return
pht
(
'%s created %s.'
,
$author
,
$object
)
;
}
protected
function
getMailTo
(
PhabricatorLiskDAO
$object
)
{
return
array
(
)
;
}
protected
function
didCatchDuplicateKeyException
(
PhabricatorLiskDAO
$object
,
array
$xactions
,
Exception
$ex
)
{
$errors
=
array
(
)
;
$errors
[
]
=
new
PhabricatorApplicationTransactionValidationError
(
PhabricatorPackagesVersionNameTransaction
::
TRANSACTIONTYPE
,
pht
(
'Duplicate'
)
,
pht
(
'The version "%s" already exists for this package. Each version '
.
'must have a unique name.'
,
$object
->
getName
(
)
)
,
null
)
;
throw
new
PhabricatorApplicationTransactionValidationException
(
$errors
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 20:50 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128616
Default Alt Text
PhabricatorPackagesVersionEditor.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment