public function QueryConditionInterface::conditions

cis7 query.inc public &QueryConditionInterface::conditions()
cle7 query.inc public &QueryConditionInterface::conditions()
elmsmedia7 query.inc public &QueryConditionInterface::conditions()
icor7 query.inc public &QueryConditionInterface::conditions()
meedjum_blog7 query.inc public &QueryConditionInterface::conditions()
mooc7 query.inc public &QueryConditionInterface::conditions()

Gets a complete list of all conditions in this conditional clause.

This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled.

The data structure that is returned is an indexed array of entries, where each entry looks like the following:

array(
  'field' => $field,
  'value' => $value,
  'operator' => $operator,
);

In the special case that $operator is NULL, the $field is taken as a raw SQL snippet (possibly containing a function) and $value is an associative array of placeholders for the snippet.

There will also be a single array entry of #conjunction, which is the conjunction that will be applied to the array, such as AND.

6 methods override QueryConditionInterface::conditions()
DatabaseCondition::conditions in includes/database/query.inc
Implements QueryConditionInterface::conditions().
DeleteQuery::conditions in includes/database/query.inc
Implements QueryConditionInterface::conditions().
MergeQuery::conditions in includes/database/query.inc
Implements QueryConditionInterface::conditions().
SelectQuery::conditions in includes/database/select.inc
Gets a complete list of all conditions in this conditional clause.
SelectQueryExtender::conditions in includes/database/select.inc
Gets a complete list of all conditions in this conditional clause.

... See full list

File

includes/database/query.inc, line 129
Non-specific Database query code. Used by all engines.

Class

QueryConditionInterface
Interface for a conditional clause in a query.

Code

public function &conditions();
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.