Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105870547
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, Mar 20, 10:40
Size
879 B
Mime Type
text/x-php
Expires
Sat, Mar 22, 10:40 (2 d)
Engine
blob
Format
Raw Data
Handle
25063221
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