public function delete($table, $where = null)
    {
        $sql = "DELETE FROM `$table`";

        if (!is_null($where)) {
            $sql .= " WHERE $where";
        }

        return $this->query($sql);
    }
public function delete($table, $where = null)
    {
        $sql = "DELETE FROM `$table`";

        if (!is_null($where)) {
            $sql .= " WHERE $where";
        }

        return $this->query($sql);
    }
public function delete ( $ table , $ where = null ) { $ sql = "DELETE FROM `$table`" ; if ( ! is_null ( $ where ) ) { $ sql .= " WHERE $where" ; } return $ this -> query ( $ sql ) ; }
Given a table name and a WHERE statement, delete rows from the
Database.

@param string $table
The table name, including the tbl prefix which will be changed
to this Symphony's table prefix in the query function
@param string $where
A WHERE statement for this DELETE statement, defaults to null,
which will delete all rows in the $table
@throws DatabaseException
@return boolean
Given a table name and a WHERE statement delete rows from the Database .