Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93600036
NuanceSourceActionController.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
Sat, Nov 30, 01:48
Size
848 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 01:48 (2 d)
Engine
blob
Format
Raw Data
Handle
22671291
Attached To
rPH Phabricator
NuanceSourceActionController.php
View Options
<?php
final
class
NuanceSourceActionController
extends
NuanceController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$source
=
id
(
new
NuanceSourceQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$request
->
getURIData
(
'id'
)))
->
executeOne
();
if
(!
$source
)
{
return
new
Aphront404Response
();
}
$def
=
$source
->
getDefinition
();
$def
->
setViewer
(
$viewer
)
->
setSource
(
$source
);
$response
=
$def
->
handleActionRequest
(
$request
);
if
(
$response
instanceof
AphrontResponse
)
{
return
$response
;
}
$title
=
$source
->
getName
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
$title
);
return
$this
->
newPage
()
->
setTitle
(
$title
)
->
setCrumbs
(
$crumbs
)
->
appendChild
(
$response
);
}
}
Event Timeline
Log In to Comment