Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105843674
PhabricatorFeedListController.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, 04:55
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Mar 22, 04:55 (2 d)
Engine
blob
Format
Raw Data
Handle
25057180
Attached To
rPH Phabricator
PhabricatorFeedListController.php
View Options
<?php
final
class
PhabricatorFeedListController
extends
PhabricatorFeedController
implements
PhabricatorApplicationSearchResultsControllerInterface
{
private
$queryKey
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
queryKey
=
idx
(
$data
,
'queryKey'
);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$controller
=
id
(
new
PhabricatorApplicationSearchController
(
$request
))
->
setQueryKey
(
$this
->
queryKey
)
->
setSearchEngine
(
new
PhabricatorFeedSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
renderResultsList
(
array
$feed
,
PhabricatorSavedQuery
$query
)
{
$builder
=
new
PhabricatorFeedBuilder
(
$feed
);
$builder
->
setShowHovercards
(
true
);
$builder
->
setUser
(
$this
->
getRequest
()->
getUser
());
$view
=
$builder
->
buildView
();
return
phutil_tag_div
(
'phabricator-feed-frame'
,
$view
);
}
}
Event Timeline
Log In to Comment