Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102721307
DrydockLogListController.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, Feb 23, 12:35
Size
867 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 12:35 (2 d)
Engine
blob
Format
Raw Data
Handle
24404390
Attached To
rPH Phabricator
DrydockLogListController.php
View Options
<?php
final
class
DrydockLogListController
extends
DrydockLogController
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
DrydockLogSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
renderResultsList
(
array
$logs
,
PhabricatorSavedQuery
$query
)
{
assert_instances_of
(
$logs
,
'DrydockLog'
);
return
$this
->
buildLogTableView
(
$logs
);
}
}
Event Timeline
Log In to Comment