Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75538407
NuanceItemPHIDType.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
Fri, Aug 2, 20:15
Size
816 B
Mime Type
text/x-php
Expires
Sun, Aug 4, 20:15 (2 d)
Engine
blob
Format
Raw Data
Handle
19563865
Attached To
rPH Phabricator
NuanceItemPHIDType.php
View Options
<?php
final
class
NuanceItemPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'NUAI'
;
public
function
getTypeName
()
{
return
pht
(
'Item'
);
}
public
function
newObject
()
{
return
new
NuanceItem
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorNuanceApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
NuanceItemQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
$viewer
=
$query
->
getViewer
();
foreach
(
$handles
as
$phid
=>
$handle
)
{
$item
=
$objects
[
$phid
];
$handle
->
setName
(
$item
->
getDisplayName
());
$handle
->
setURI
(
$item
->
getURI
());
}
}
}
Event Timeline
Log In to Comment