Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96994615
NuanceQueueEditController.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, Jan 1, 11:00
Size
991 B
Mime Type
text/x-php
Expires
Fri, Jan 3, 11:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23308596
Attached To
rPH Phabricator
NuanceQueueEditController.php
View Options
<?php
final
class
NuanceQueueEditController
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
(
idx
(
$data
,
'id'
));
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$queue_id
=
$this
->
getQueueID
();
$is_new
=
!
$queue_id
;
if
(
$is_new
)
{
$queue
=
new
NuanceQueue
();
}
else
{
$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