Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95928374
NuanceConsoleController.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, Dec 20, 18:36
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 22, 18:36 (2 d)
Engine
blob
Format
Raw Data
Handle
23080376
Attached To
rPH Phabricator
NuanceConsoleController.php
View Options
<?php
final
class
NuanceConsoleController
extends
NuanceController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$menu
=
id
(
new
PHUIObjectItemListView
())
->
setUser
(
$viewer
);
$menu
->
addItem
(
id
(
new
PHUIObjectItemView
())
->
setHeader
(
pht
(
'Queues'
))
->
setHref
(
$this
->
getApplicationURI
(
'queue/'
))
->
setIcon
(
'fa-align-left'
)
->
addAttribute
(
pht
(
'Manage Nuance queues.'
)));
$menu
->
addItem
(
id
(
new
PHUIObjectItemView
())
->
setHeader
(
pht
(
'Sources'
))
->
setHref
(
$this
->
getApplicationURI
(
'source/'
))
->
setIcon
(
'fa-filter'
)
->
addAttribute
(
pht
(
'Manage Nuance sources.'
)));
$menu
->
addItem
(
id
(
new
PHUIObjectItemView
())
->
setHeader
(
pht
(
'Items'
))
->
setHref
(
$this
->
getApplicationURI
(
'item/'
))
->
setIcon
(
'fa-clone'
)
->
addAttribute
(
pht
(
'Manage Nuance items.'
)));
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'Console'
));
$box
=
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'Console'
))
->
setObjectList
(
$menu
);
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$box
,
),
array
(
'title'
=>
pht
(
'Nuance Console'
),
));
}
}
Event Timeline
Log In to Comment