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

callSnippetsInternal() защищенный Метод

Builds a snippets from provided source data by the given index.
protected callSnippetsInternal ( array $source, string $from ) : array
$source array the source data to extract a snippet from.
$from string name of the source index.
Результат array snippets list.
    protected function callSnippetsInternal(array $source, $from)
    {
        $connection = $this->getConnection();
        $match = $this->match;
        if ($match === null) {
            throw new InvalidCallException('Unable to call snippets: "' . $this->className() . '::match" should be specified.');
        }
        return $connection->createCommand()->callSnippets($from, $source, $match, $this->snippetOptions)->queryColumn();
    }