Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
yii
sphinx
Query
snippetCallback
yii\sphinx\Query::snippetCallback PHP Method
Query Class Documentation
Show file
Open project: yiisoft/yii2-sphinx
snippetCallback()
public
method
Sets the PHP callback, which should be used to retrieve the source data for the snippets building.
See also:
snippetCallback
public
snippetCallback
(
callable
$callback
)
$callback
callable
PHP callback, which should be used to fetch source data for the snippets.
public function snippetCallback($callback) { $this->snippetCallback = $callback; return $this; }
Query
addFacets
addOptions
addWithin
callSnippets
callSnippetsInternal
create
createCommand
defaultConnection
facets
fillUpSnippets
getConnection
groupLimit
innerJoin
join
leftJoin
match
one
options
populate
queryScalar
rightJoin
search
setConnection
showMeta
snippetCallback
snippetOptions
within