Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21409827
DrydockPHIDTypeResource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
779 B
Referenced Files
None
Subscribers
None
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}/"
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 31, 11:28 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16388508
Default Alt Text
DrydockPHIDTypeResource.php (779 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment