Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77242275
PhabricatorDashboardDashboardPHIDType.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
Tue, Aug 13, 08:09
Size
874 B
Mime Type
text/x-php
Expires
Thu, Aug 15, 08:09 (2 d)
Engine
blob
Format
Raw Data
Handle
19846233
Attached To
rPH Phabricator
PhabricatorDashboardDashboardPHIDType.php
View Options
<?php
final
class
PhabricatorDashboardDashboardPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'DSHB'
;
public
function
getTypeName
()
{
return
pht
(
'Dashboard'
);
}
public
function
newObject
()
{
return
new
PhabricatorDashboard
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorDashboardApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorDashboardQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$dashboard
=
$objects
[
$phid
];
$id
=
$dashboard
->
getID
();
$handle
->
setName
(
$dashboard
->
getName
());
$handle
->
setURI
(
"/dashboard/view/{$id}/"
);
}
}
}
Event Timeline
Log In to Comment