Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122151587
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
Wed, Jul 16, 04:48
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jul 18, 04:48 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27406615
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
hsprintf
(
'<div class="phabricator-feed-frame">%s</div>'
,
$view
);
}
}
Event Timeline
Log In to Comment