function db_condition

db_condition($conjunction)

Returns a new DatabaseCondition, set to the specified conjunction.

Internal API function call. The db_and(), db_or(), and db_xor() functions are preferred.

Parameters

$conjunction: The conjunction to use for query conditions (AND, OR or XOR).

Return value

DatabaseCondition

Related topics

File

includes/database/database.inc, line 2730
Core systems for the database layer.

Code

function db_condition($conjunction) {
  return new DatabaseCondition($conjunction);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!database.inc/function/db_condition/7.x