yii\sphinx\QueryBuilder::insert PHP Метод

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

For example, php $sql = $queryBuilder->insert('idx_user', [ 'name' => 'Sam', 'age' => 30, 'id' => 10, ], $params); The method will properly escape the index and column names.
public insert ( string $index, array $columns, array &$params ) : string
$index string the index that new rows will be inserted into.
$columns array the column data (name => value) to be inserted into the index.
$params array the binding parameters that will be generated by this method. They should be bound to the Sphinx command later.
Результат string the INSERT SQL
    public function insert($index, $columns, &$params)
    {
        return $this->generateInsertReplace('INSERT', $index, $columns, $params);
    }