Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109974807
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
Thu, Apr 24, 05:03
Size
879 B
Mime Type
text/x-php
Expires
Sat, Apr 26, 05:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25758521
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
=
NuanceSourceDefinition
::
getDefinitionForSource
(
$source
);
$def
->
setActor
(
$viewer
);
$response
=
$def
->
handleActionRequest
(
$request
);
if
(
$response
instanceof
AphrontResponse
)
{
return
$response
;
}
$title
=
$source
->
getName
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
$title
);
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$response
,
),
array
(
'title'
=>
$title
,
));
}
}
Event Timeline
Log In to Comment