removeFieldsInCondition

  1. drupal
    1. drupal7
Versionen
drupal7 protected UpdateQuery_sqlite::removeFieldsInCondition(&$fields, QueryConditionInterface $condition)

Helper function that removes the fields that are already in a condition.

Übergabeparameter

$fields The fields.

QueryConditionInterface $condition A database condition.

Verwandte Themen

Code

includes/database/sqlite/query.inc, line 69

<?php
protected function removeFieldsInCondition(&$fields, QueryConditionInterface $condition) {
  foreach ($condition->conditions() as $child_condition) {
    if ($child_condition['field'] instanceof QueryConditionInterface) {
      $this->removeFieldsInCondition($fields, $child_condition['field']);
    }
    else {
      unset($fields[$child_condition['field']]);
    }
  }
}
?>

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