updateExcept

  1. drupal
    1. drupal7
Versionen
drupal7 public MergeQuery::updateExcept($exclude_fields)

Specify fields that should not be updated in case of a duplicate record.

If this method is called and a record with the values in keys() already exists, Drupal will instead update the record with the values passed in the fields() method except for the fields specified in this method. That is, calling this method is equivalent to calling update() with identical parameters as fields() minus the keys specified here.

The update() method takes precedent over this method. If update() is called, this method has no effect.

Übergabeparameter

$exclude_fields An array of fields in the query that should not be updated to match those specified by the fields() method. Alternatively, the fields may be specified as a variable number of string parameters.

Rückgabewert

The called object.

Verwandte Themen

Code

includes/database/query.inc, line 642

<?php
public function updateExcept($exclude_fields) {
  if (!is_array($exclude_fields)) {
    $exclude_fields = func_get_args();
  }
  $this->excludeFields = $exclude_fields;

  return $this;
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen