Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92700428
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
Fri, Nov 22, 22:10
Size
848 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 22:10 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
22490578
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