fields

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

Set the field->value pairs to be merged into the table.

This method should only be called once. It may be called either with a single associative array or two indexed arrays. If called with an associative array, the keys are taken to be the fields and the values are taken to be the corresponding values to set. If called with two arrays, the first array is taken as the fields and the second array is taken as the corresponding values.

Ü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 555

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