Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97623062
DivinerAtomListController.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
Sun, Jan 5, 19:47
Size
809 B
Mime Type
text/x-php
Expires
Tue, Jan 7, 19:47 (2 d)
Engine
blob
Format
Raw Data
Handle
23367477
Attached To
rPH Phabricator
DivinerAtomListController.php
View Options
<?php
final
class
DivinerAtomListController
extends
DivinerController
implements
PhabricatorApplicationSearchResultsControllerInterface
{
private
$key
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
key
=
idx
(
$data
,
'key'
,
'all'
);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$controller
=
id
(
new
PhabricatorApplicationSearchController
(
$request
))
->
setQueryKey
(
$this
->
key
)
->
setSearchEngine
(
new
DivinerAtomSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
renderResultsList
(
array
$symbols
,
PhabricatorSavedQuery
$query
)
{
return
$this
->
renderAtomList
(
$symbols
);
}
}
Event Timeline
Log In to Comment