Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120197655
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
Wed, Jul 2, 14:36
Size
859 B
Mime Type
text/x-php
Expires
Fri, Jul 4, 14:36 (1 d, 5 m)
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