Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100213801
DrydockLogSearchEngine.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, Jan 29, 02:17
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 31, 02:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23919210
Attached To
rPH Phabricator
DrydockLogSearchEngine.php
View Options
<?php
final
class
DrydockLogSearchEngine
extends
PhabricatorApplicationSearchEngine
{
public
function
getResultTypeDescription
()
{
return
pht
(
'Drydock Logs'
);
}
protected
function
getApplicationClassName
()
{
return
'PhabricatorDrydockApplication'
;
}
public
function
buildSavedQueryFromRequest
(
AphrontRequest
$request
)
{
return
new
PhabricatorSavedQuery
();
}
public
function
buildQueryFromSavedQuery
(
PhabricatorSavedQuery
$saved
)
{
return
new
DrydockLogQuery
();
}
public
function
buildSearchForm
(
AphrontFormView
$form
,
PhabricatorSavedQuery
$saved
)
{}
protected
function
getURI
(
$path
)
{
return
'/drydock/log/'
.
$path
;
}
protected
function
getBuiltinQueryNames
()
{
return
array
(
'all'
=>
pht
(
'All Logs'
),
);
}
public
function
buildSavedQueryFromBuiltin
(
$query_key
)
{
$query
=
$this
->
newSavedQuery
();
$query
->
setQueryKey
(
$query_key
);
switch
(
$query_key
)
{
case
'all'
:
return
$query
;
}
return
parent
::
buildSavedQueryFromBuiltin
(
$query_key
);
}
protected
function
renderResultList
(
array
$logs
,
PhabricatorSavedQuery
$query
,
array
$handles
)
{
return
id
(
new
DrydockLogListView
())
->
setUser
(
$this
->
requireViewer
())
->
setLogs
(
$logs
)
->
render
();
}
}
Event Timeline
Log In to Comment