Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17826734
PhabricatorApplicationApplicationPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
952 B
Referenced Files
None
Subscribers
None
PhabricatorApplicationApplicationPHIDType.php
View Options
<?php
final
class
PhabricatorApplicationApplicationPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'APPS'
;
public
function
getTypeName
()
{
return
pht
(
'Application'
);
}
public
function
getTypeIcon
()
{
return
'fa-globe'
;
}
public
function
newObject
()
{
return
null
;
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorApplicationsApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorApplicationQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$application
=
$objects
[
$phid
];
$handle
->
setName
(
$application
->
getName
())
->
setURI
(
$application
->
getApplicationURI
())
->
setIcon
(
$application
->
getIcon
());
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jul 28, 7:35 AM (15 h, 21 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8246653
Default Alt Text
PhabricatorApplicationApplicationPHIDType.php (952 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment