original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Deletes table rows based on a WHERE clause .