function db_or

Returns a new DatabaseCondition, set to "OR" all conditions together.

Return value

Condition

Related topics

17 calls to db_or()
Access::query in drupal/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php
See _node_access_where_sql() for a non-views query based implementation.
Current::query in drupal/core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php
Add this filter to the query.
hook_query_TAG_alter in drupal/core/modules/system/system.api.php
Perform alterations to a structured query for a given tag.
ManyToOneHelper::add_filter in drupal/core/modules/views/lib/Drupal/views/ManyToOneHelper.php
node_access in drupal/core/modules/node/node.module
Access callback: Checks a user's permission for performing a node operation.

... See full list

File

drupal/core/includes/database.inc, line 535
Core systems for the database layer.

Code

function db_or() {
  return new Condition('OR');
}