SlightPHP\Db::delete PHP Method

delete() public method

delete
public delete ( string | array | object $table, string | array | object $condition ) : integer | boolean
$table string | array | object
$condition string | array | object
return integer | boolean
    public function delete($table, $condition)
    {
        $table = $this->__array2string($table);
        $condiStr = $this->__quote($condition, "AND");
        if ($condiStr != "") {
            $condiStr = " WHERE " . $condiStr;
        }
        $sql = "DELETE FROM  {$table} {$condiStr}";
        return $this->__query($sql);
    }