Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2991594
DrydockRepositoryOperationPHIDType.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
913 B
Referenced Files
None
Subscribers
None
DrydockRepositoryOperationPHIDType.php
View Options
<?php
final
class
DrydockRepositoryOperationPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'DRYO'
;
public
function
getTypeName
(
)
{
return
pht
(
'Repository Operation'
)
;
}
public
function
newObject
(
)
{
return
new
DrydockRepositoryOperation
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorDrydockApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
DrydockRepositoryOperationQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$operation
=
$objects
[
$phid
]
;
$id
=
$operation
->
getID
(
)
;
$handle
->
setName
(
pht
(
'Repository Operation %d'
,
$id
)
)
;
$handle
->
setURI
(
"/drydock/operation/{$id}/"
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Feb 23, 03:08 (1 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1142844
Default Alt Text
DrydockRepositoryOperationPHIDType.php (913 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment