Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2990729
DrydockLeasePHIDType.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
915 B
Referenced Files
None
Subscribers
None
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
::
class
;
}
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}/"
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 23:45 (19 h, 20 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1163896
Default Alt Text
DrydockLeasePHIDType.php (915 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment