QueryConditionTrait::conditions

public &QueryConditionTrait::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, th

QueryConditionTrait::conditionGroupFactory

public QueryConditionTrait::conditionGroupFactory($conjunction = 'AND') Creates an object holding a group of conditions. See andConditionGroup() and orConditionGroup() for more. Parameters $conjunction: AND (default): this is the equivalent of andConditionGroup(). OR: this is the equivalent of andConditionGroup(). Return value \Drupal\Core\Database\Query\ConditionInterface An object holding a group of conditions. Overrides ConditionInterface::conditionGroupFactory File core/lib/Drupal/Cor

QueryConditionTrait::condition

public QueryConditionTrait::condition($field, $value = NULL, $operator = '=') Helper function: builds the most common conditional clauses. This method can take a variable number of parameters. If called with two parameters, they are taken as $field and $value with $operator having a value of =. Do not use this method to test for NULL values. Instead, use QueryConditionInterface::isNull() or QueryConditionInterface::isNotNull(). Drupal considers LIKE case insensitive and the following is often u

QueryConditionTrait::compiled

public QueryConditionTrait::compiled() Check whether a condition has been previously compiled. Return value TRUE if the condition has been previously compiled. Overrides ConditionInterface::compiled File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 95 Class QueryConditionTrait Provides an implementation of ConditionInterface. Namespace Drupal\Core\Database\Query Code public function compiled() { return $this->condition->compiled(); }

QueryConditionTrait::compile

public QueryConditionTrait::compile(Connection $connection, PlaceholderInterface $queryPlaceholder) Compiles the saved conditions for later retrieval. This method does not return anything, but simply prepares data to be retrieved via __toString() and arguments(). Parameters $connection: The database connection for which to compile the conditionals. $queryPlaceholder: The query this condition belongs to. If not given, the current query is used. Overrides ConditionInterface::compile File core/li

QueryConditionTrait::arguments

public QueryConditionTrait::arguments() Gets a complete list of all values to insert into the prepared statement. Return value An associative array of placeholders and values. Overrides ConditionInterface::arguments File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 73 Class QueryConditionTrait Provides an implementation of ConditionInterface. Namespace Drupal\Core\Database\Query Code public function arguments() { return $this->condition->arguments(); }

QueryConditionTrait::andConditionGroup

public QueryConditionTrait::andConditionGroup() Creates a new group of conditions ANDed together. Return value \Drupal\Core\Database\Query\ConditionInterface Overrides ConditionInterface::andConditionGroup File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 109 Class QueryConditionTrait Provides an implementation of ConditionInterface. Namespace Drupal\Core\Database\Query Code public function andConditionGroup() { return $this->conditionGroupFactory('AND'); }

QueryConditionTrait::$condition

The condition object for this query. Condition handling is handled via composition. Type: \Drupal\Core\Database\Query\Condition File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 21 Class QueryConditionTrait Provides an implementation of ConditionInterface. Namespace Drupal\Core\Database\Query Code protected $condition;

QueryConditionTrait

Provides an implementation of ConditionInterface. Hierarchy trait \Drupal\Core\Database\Query\QueryConditionTrait See also \Drupal\Core\Database\Query\ConditionInterface File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 12 Namespace Drupal\Core\Database\Query Members Name Modifiers Type Description QueryConditionTrait::$condition protected property The condition object for this query. QueryConditionTrait::andConditionGroup public function Cr

QueryBase::__construct

public QueryBase::__construct(EntityTypeInterface $entity_type, $conjunction, array $namespaces) Constructs this object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. string $conjunction: AND: all of the conditions on the query need to match. OR: at least one of the conditions on the query need to match. array $namespaces: List of potential namespaces of the classes belonging to this query. File core/lib/Drupal/Core/Entity/Query/QueryBase.php,