Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92699733
PhabricatorProjectColumnSearchEngine.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
Fri, Nov 22, 21:59
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 21:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22490170
Attached To
rPH Phabricator
PhabricatorProjectColumnSearchEngine.php
View Options
<?php
final
class
PhabricatorProjectColumnSearchEngine
extends
PhabricatorApplicationSearchEngine
{
public
function
getResultTypeDescription
()
{
return
pht
(
'Workboard Columns'
);
}
public
function
getApplicationClassName
()
{
return
'PhabricatorProjectApplication'
;
}
public
function
newQuery
()
{
return
new
PhabricatorProjectColumnQuery
();
}
protected
function
buildCustomSearchFields
()
{
return
array
(
id
(
new
PhabricatorPHIDsSearchField
())
->
setLabel
(
pht
(
'Projects'
))
->
setKey
(
'projectPHIDs'
)
->
setConduitKey
(
'projects'
)
->
setAliases
(
array
(
'project'
,
'projects'
,
'projectPHID'
)),
);
}
protected
function
buildQueryFromParameters
(
array
$map
)
{
$query
=
$this
->
newQuery
();
if
(
$map
[
'projectPHIDs'
])
{
$query
->
withProjectPHIDs
(
$map
[
'projectPHIDs'
]);
}
return
$query
;
}
protected
function
getURI
(
$path
)
{
// NOTE: There's no way to query columns in the web UI, at least for
// the moment.
return
null
;
}
protected
function
getBuiltinQueryNames
()
{
$names
=
array
();
$names
[
'all'
]
=
pht
(
'All'
);
return
$names
;
}
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
$projects
,
PhabricatorSavedQuery
$query
,
array
$handles
)
{
assert_instances_of
(
$projects
,
'PhabricatorProjectColumn'
);
$viewer
=
$this
->
requireViewer
();
return
null
;
}
}
Event Timeline
Log In to Comment