Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19470150
DrydockAuthorizationPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
904 B
Referenced Files
None
Subscribers
None
DrydockAuthorizationPHIDType.php
View Options
<?php
final
class
DrydockAuthorizationPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'DRYA'
;
public
function
getTypeName
()
{
return
pht
(
'Drydock Authorization'
);
}
public
function
newObject
()
{
return
new
DrydockAuthorization
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorDrydockApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
DrydockAuthorizationQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$authorization
=
$objects
[
$phid
];
$id
=
$authorization
->
getID
();
$handle
->
setName
(
pht
(
'Drydock Authorization %d'
,
$id
));
$handle
->
setURI
(
"/drydock/authorization/{$id}/"
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jan 7, 10:20 AM (1 d, 37 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8205842
Default Alt Text
DrydockAuthorizationPHIDType.php (904 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment