Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105334226
NuanceQueueViewController.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
Sun, Mar 16, 10:07
Size
877 B
Mime Type
text/x-php
Expires
Tue, Mar 18, 10:07 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24943011
Attached To
rPH Phabricator
NuanceQueueViewController.php
View Options
<?php
final
class
NuanceQueueViewController
extends
NuanceController
{
private
$queueID
;
public
function
setQueueID
(
$queue_id
)
{
$this
->
queueID
=
$queue_id
;
return
$this
;
}
public
function
getQueueID
()
{
return
$this
->
queueID
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
setQueueID
(
$data
[
'id'
]);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$queue_id
=
$this
->
getQueueID
();
$queue
=
id
(
new
NuanceQueueQuery
())
->
setViewer
(
$user
)
->
withIDs
(
array
(
$queue_id
))
->
executeOne
();
if
(!
$queue
)
{
return
new
Aphront404Response
();
}
$crumbs
=
$this
->
buildApplicationCrumbs
();
$title
=
'TODO'
;
return
$this
->
buildApplicationPage
(
$crumbs
,
array
(
'title'
=>
$title
,
'device'
=>
true
));
}
}
Event Timeline
Log In to Comment