Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77163472
NuanceQueuePHIDType.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
Mon, Aug 12, 20:19
Size
816 B
Mime Type
text/x-php
Expires
Wed, Aug 14, 20:19 (2 d)
Engine
blob
Format
Raw Data
Handle
19832841
Attached To
rPH Phabricator
NuanceQueuePHIDType.php
View Options
<?php
final
class
NuanceQueuePHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'NUAQ'
;
public
function
getTypeName
()
{
return
pht
(
'Queue'
);
}
public
function
newObject
()
{
return
new
NuanceQueue
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorNuanceApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
NuanceQueueQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
$viewer
=
$query
->
getViewer
();
foreach
(
$handles
as
$phid
=>
$handle
)
{
$queue
=
$objects
[
$phid
];
$handle
->
setName
(
$queue
->
getName
());
$handle
->
setURI
(
$queue
->
getURI
());
}
}
}
Event Timeline
Log In to Comment