update

  1. drupal
    1. drupal7
Versionen
drupal7 public MergeQuery::update(array $fields, array $values = array())

Specify fields to update in case of a duplicate record.

If a record with the values in keys() already exists, the fields and values specified here will be updated in that record. If this method is not called, it defaults to the same values as were passed to the fields() method.

Übergabeparameter

$fields An array of fields to set.

$values An array of fields to set into the database. The values must be specified in the same order as the $fields array.

Rückgabewert

The called object.

Verwandte Themen

Code

includes/database/query.inc, line 613

<?php
public function update(array $fields, array $values = array()) {
  if ($values) {
    $fields = array_combine($fields, $values);
  }
  $this->updateFields = $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