db_or

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 db_or()

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

Return value

DatabaseCondition

Related topics

▾ 21 functions call db_or()

DatabaseSelectComplexTestCase::testNestedConditions in modules/simpletest/tests/database_test.test
Confirm that we can properly nest conditional clauses.
DatabaseUpdateComplexTestCase::testOrConditionUpdate in modules/simpletest/tests/database_test.test
Test updates with OR conditionals.
hook_query_TAG_alter in modules/system/system.api.php
Perform alterations to a structured query for a given tag.
node_access in modules/node/node.module
Determine whether the current user may perform the given operation on the specified node.
node_access_view_all_nodes in modules/node/node.module
Determines whether the user has a global viewing grant for all nodes.
node_admin_nodes in modules/node/node.admin.inc
Form builder: Builds the node administration overview.
node_get_recent in modules/node/node.module
Finds the most recently changed nodes that are available to the current user.
SearchQuery::executeFirstPass in modules/search/search.extender.inc
Executes the first pass query.
SearchQuery::parseSearchExpression in modules/search/search.extender.inc
Parses the search query into SQL conditions.
SearchQuery::setOption in modules/search/search.extender.inc
Applies a search option and removes it from the search query string.
search_update_totals in modules/search/search.module
Updates the {search_total} database table.
statistics_node_tracker in modules/statistics/statistics.pages.inc
system_update_7015 in modules/system/system.install
Change the user logout path.
system_update_7053 in modules/system/system.install
Upgrade standard blocks and menus.
system_update_files_database in modules/system/system.module
Updates the records in the system table based on the files array.
user_search_execute in modules/user/user.module
Implements hook_search_execute().
_block_rehash in modules/block/block.module
Update the 'block' DB table with the blocks currently exported by modules.
_locale_translate_seek in includes/locale.inc
Perform a string search and display results in a table
_menu_navigation_links_rebuild in includes/menu.inc
Helper function to build menu links for the items in the menu router.
_node_query_node_access_alter in modules/node/node.module
Helper for node access functions.
_update_authorize_clear_update_status in modules/update/update.authorize.inc
Private helper function to clear cached available update status data.

Code

includes/database/database.inc, line 2631

<?php
function db_or() {
  return new DatabaseCondition('OR');
}
?>