Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97778631
NuanceRequestorViewController.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
Mon, Jan 6, 08:55
Size
937 B
Mime Type
text/x-php
Expires
Wed, Jan 8, 08:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23450398
Attached To
rPH Phabricator
NuanceRequestorViewController.php
View Options
<?php
final
class
NuanceRequestorViewController
extends
NuanceController
{
private
$requestorID
;
public
function
setRequestorID
(
$requestor_id
)
{
$this
->
requestorID
=
$requestor_id
;
return
$this
;
}
public
function
getRequestorID
()
{
return
$this
->
requestorID
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
setRequestorID
(
$data
[
'id'
]);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$requestor_id
=
$this
->
getRequestorID
();
$requestor
=
id
(
new
NuanceRequestorQuery
())
->
setViewer
(
$user
)
->
withIDs
(
array
(
$requestor_id
))
->
executeOne
();
if
(!
$requestor
)
{
return
new
Aphront404Response
();
}
$crumbs
=
$this
->
buildApplicationCrumbs
();
$title
=
'TODO'
;
return
$this
->
buildApplicationPage
(
$crumbs
,
array
(
'title'
=>
$title
,
'device'
=>
true
));
}
}
Event Timeline
Log In to Comment