yii\sphinx\Query::snippetCallback PHP Метод

snippetCallback() публичный Метод

Sets the PHP callback, which should be used to retrieve the source data for the snippets building.
См. также: 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;
    }