Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78458823
DrydockPHIDTypeResource.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
Wed, Aug 21, 00:29
Size
779 B
Mime Type
text/x-php
Expires
Fri, Aug 23, 00:29 (2 d)
Engine
blob
Format
Raw Data
Handle
20047143
Attached To
rPH Phabricator
DrydockPHIDTypeResource.php
View Options
<?php
final
class
DrydockPHIDTypeResource
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'DRYR'
;
public
function
getTypeConstant
()
{
return
self
::
TYPECONST
;
}
public
function
getTypeName
()
{
return
pht
(
'Drydock Resource'
);
}
public
function
newObject
()
{
return
new
DrydockResource
();
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
DrydockResourceQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$resource
=
$objects
[
$phid
];
$id
=
$resource
->
getID
();
$handle
->
setURI
(
"/drydock/resource/{$id}/"
);
}
}
}
Event Timeline
Log In to Comment