public function delete($table, $where = '')
    {
        $where = $this->_whereExpr($where);

        /**
         * Build the DELETE statement
         */
        $sql = "DELETE FROM "
             . $this->quoteIdentifier($table, true)
             . (($where) ? " WHERE $where" : '');

        /**
         * Execute the statement and return the number of affected rows
         */
        $stmt = $this->query($sql);
        $result = $stmt->rowCount();
        return $result;
    }
public function delete($table, $where = '')
    {
        $where = $this->_whereExpr($where);

        /**
         * Build the DELETE statement
         */
        $sql = "DELETE FROM "
             . $this->quoteIdentifier($table, true)
             . (($where) ? " WHERE $where" : '');

        /**
         * Execute the statement and return the number of affected rows
         */
        $stmt = $this->query($sql);
        $result = $stmt->rowCount();
        return $result;
    }
public function delete ( $ table , $ where = '' ) { $ where = $ this -> _whereExpr ( $ where ) ; /**
         * Build the DELETE statement
         */ $ sql = "DELETE FROM " . $ this -> quoteIdentifier ( $ table , true ) . ( ( $ where ) ? " WHERE $where" : '' ) ; /**
         * Execute the statement and return the number of affected rows
         */ $ stmt = $ this -> query ( $ sql ) ; $ result = $ stmt -> rowCount ( ) ; return $ result ; }
Deletes table rows based on a WHERE clause.

@param  mixed        $table The table to update.
@param  mixed        $where DELETE WHERE clause(s).
@return int          The number of affected rows.
Deletes table rows based on a WHERE clause .