src/HSPHP/WriteHandler.php
public function insert($values)
    {
        $sv = $this->fields;
        foreach ($sv as &$value) {
            if (!isset($values[$value])) {
                break;
            }

            $value = $values[$value];
        }
        array_slice($sv, 0, count($values));
        $this->io->insert($this->indexId, $sv);
        $ret = $this->io->registerCallback(array($this, 'insertCallback'));
        if ($ret instanceof ErrorMessage) {
            throw $ret;
        }

        return $ret;
    }
public function insert($values)
    {
        $sv = $this->fields;
        foreach ($sv as &$value) {
            if (!isset($values[$value])) {
                break;
            }

            $value = $values[$value];
        }
        array_slice($sv, 0, count($values));
        $this->io->insert($this->indexId, $sv);
        $ret = $this->io->registerCallback(array($this, 'insertCallback'));
        if ($ret instanceof ErrorMessage) {
            throw $ret;
        }

        return $ret;
    }
Insert Rows

@param array $values

@throws ErrorMessage

@return Boolean