Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892936
NuanceConsoleController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
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/'
)
)
->
setImageIcon
(
'fa-align-left'
)
->
addAttribute
(
pht
(
'Manage Nuance queues.'
)
)
)
;
$menu
->
addItem
(
id
(
new
PHUIObjectItemView
(
)
)
->
setHeader
(
pht
(
'Sources'
)
)
->
setHref
(
$this
->
getApplicationURI
(
'source/'
)
)
->
setImageIcon
(
'fa-filter'
)
->
addAttribute
(
pht
(
'Manage Nuance sources.'
)
)
)
;
$menu
->
addItem
(
id
(
new
PHUIObjectItemView
(
)
)
->
setHeader
(
pht
(
'Items'
)
)
->
setHref
(
$this
->
getApplicationURI
(
'item/'
)
)
->
setImageIcon
(
'fa-clone'
)
->
addAttribute
(
pht
(
'Manage Nuance items.'
)
)
)
;
$crumbs
=
$this
->
buildApplicationCrumbs
(
)
;
$crumbs
->
addTextCrumb
(
pht
(
'Console'
)
)
;
$crumbs
->
setBorder
(
true
)
;
$box
=
id
(
new
PHUIObjectBoxView
(
)
)
->
setObjectList
(
$menu
)
;
$header
=
id
(
new
PHUIHeaderView
(
)
)
->
setHeader
(
pht
(
'Nuance Console'
)
)
->
setHeaderIcon
(
'fa-fax'
)
;
$view
=
id
(
new
PHUITwoColumnView
(
)
)
->
setHeader
(
$header
)
->
setFooter
(
array
(
$box
,
)
)
;
return
$this
->
newPage
(
)
->
setTitle
(
pht
(
'Nuance Console'
)
)
->
setCrumbs
(
$crumbs
)
->
appendChild
(
$view
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 17:34 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127021
Default Alt Text
NuanceConsoleController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment