Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102763971
PhabricatorSearchTokenizerField.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, 23:10
Size
631 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 23:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24400293
Attached To
rPH Phabricator
PhabricatorSearchTokenizerField.php
View Options
<?php
abstract
class
PhabricatorSearchTokenizerField
extends
PhabricatorSearchField
{
protected
function
getDefaultValue
()
{
return
array
();
}
protected
function
getValueFromRequest
(
AphrontRequest
$request
,
$key
)
{
return
$this
->
getListFromRequest
(
$request
,
$key
);
}
public
function
getValueForQuery
(
$value
)
{
return
$this
->
newDatasource
()
->
setViewer
(
$this
->
getViewer
())
->
evaluateTokens
(
$value
);
}
protected
function
newControl
()
{
return
id
(
new
AphrontFormTokenizerControl
())
->
setDatasource
(
$this
->
newDatasource
());
}
abstract
protected
function
newDatasource
();
}
Event Timeline
Log In to Comment