Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81868225
DrydockLeasePHIDType.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
Sun, Sep 8, 08:40
Size
910 B
Mime Type
text/x-php
Expires
Tue, Sep 10, 08:40 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20622238
Attached To
rPH Phabricator
DrydockLeasePHIDType.php
View Options
<?php
final
class
DrydockLeasePHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'DRYL'
;
public
function
getTypeName
()
{
return
pht
(
'Drydock Lease'
);
}
public
function
getTypeIcon
()
{
return
'fa-link'
;
}
public
function
newObject
()
{
return
new
DrydockLease
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorDrydockApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
DrydockLeaseQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$lease
=
$objects
[
$phid
];
$id
=
$lease
->
getID
();
$handle
->
setName
(
pht
(
'Lease %d'
,
$id
));
$handle
->
setURI
(
"/drydock/lease/{$id}/"
);
}
}
}
Event Timeline
Log In to Comment