Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96118531
NuanceItemViewController.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, Dec 22, 20:02
Size
844 B
Mime Type
text/x-php
Expires
Tue, Dec 24, 20:02 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
23125586
Attached To
rPH Phabricator
NuanceItemViewController.php
View Options
<?php
final
class
NuanceItemViewController
extends
NuanceController
{
private
$itemID
;
public
function
setItemID
(
$item_id
)
{
$this
->
itemID
=
$item_id
;
return
$this
;
}
public
function
getItemID
()
{
return
$this
->
itemID
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
setItemID
(
$data
[
'id'
]);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$item_id
=
$this
->
getItemID
();
$item
=
id
(
new
NuanceItemQuery
())
->
setViewer
(
$user
)
->
withIDs
(
array
(
$item_id
))
->
executeOne
();
if
(!
$item
)
{
return
new
Aphront404Response
();
}
$crumbs
=
$this
->
buildApplicationCrumbs
();
$title
=
'TODO'
;
return
$this
->
buildApplicationPage
(
$crumbs
,
array
(
'title'
=>
$title
,
));
}
}
Event Timeline
Log In to Comment