Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91480117
DrydockResourceListController.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
Mon, Nov 11, 13:13
Size
933 B
Mime Type
text/x-php
Expires
Wed, Nov 13, 13:13 (2 d)
Engine
blob
Format
Raw Data
Handle
22268948
Attached To
rPH Phabricator
DrydockResourceListController.php
View Options
<?php
final
class
DrydockResourceListController
extends
DrydockResourceController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$engine
=
new
DrydockResourceSearchEngine
();
$id
=
$request
->
getURIData
(
'id'
);
if
(
$id
)
{
$blueprint
=
id
(
new
DrydockBlueprintQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
if
(!
$blueprint
)
{
return
new
Aphront404Response
();
}
$this
->
setBlueprint
(
$blueprint
);
$engine
->
setBlueprint
(
$blueprint
);
}
$querykey
=
$request
->
getURIData
(
'queryKey'
);
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$querykey
)
->
setSearchEngine
(
$engine
)
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
}
Event Timeline
Log In to Comment