Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120474380
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
Fri, Jul 4, 15:41
Size
859 B
Mime Type
text/x-php
Expires
Sun, Jul 6, 15:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27123308
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
,
));
}
}
Event Timeline
Log In to Comment