yii\sphinx\ActiveRecord::getSnippet PHP Метод

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

Returns current snippet value or generates new one from given match.
public getSnippet ( string $match = null, array $options = [] ) : string
$match string snippet source query
$options array list of options in format: optionName => optionValue
Результат string snippet value
    public function getSnippet($match = null, $options = [])
    {
        if ($match !== null) {
            $this->_snippet = $this->fetchSnippet($match, $options);
        }
        return $this->_snippet;
    }