Pheasant\Database\Mysqli\Table::insert PHP Method

insert() public method

Inserts a row into the table
public insert ( $data )
    public function insert($data)
    {
        if (empty($data)) {
            throw new Exception("Can't insert an empty row");
        }
        return $this->_connection->execute(sprintf('INSERT INTO %s SET %s', $this->_name->quoted(), $this->_buildSet($data)), array_values($data));
    }