ConditionAggregate::compile

public ConditionAggregate::compile($conditionContainer) Compiles this conditional clause. Parameters $query: The query object this conditional clause belongs to. Overrides ConditionAggregateInterface::compile File core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php, line 19 Class ConditionAggregate Defines the aggregate condition for sql based storage. Namespace Drupal\Core\Entity\Query\Sql Code public function compile($conditionContainer) { // If this is not the top level

ConditionAggregate

Defines the aggregate condition for sql based storage. Hierarchy class \Drupal\Core\Entity\Query\ConditionFundamentalsclass \Drupal\Core\Entity\Query\ConditionAggregateBase implements ConditionAggregateInterfaceclass \Drupal\Core\Entity\Query\Sql\ConditionAggregate File core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php, line 14 Namespace Drupal\Core\Entity\Query\Sql Members Name Modifiers Type Description ConditionAggregate::compile public function Compiles

ConditionAccessResolverTrait::resolveConditions

protected ConditionAccessResolverTrait::resolveConditions($conditions, $condition_logic) Resolves the given conditions based on the condition logic ('and'/'or'). Parameters \Drupal\Core\Condition\ConditionInterface[] $conditions: A set of conditions. string $condition_logic: The logic used to compute access, either 'and' or 'or'. Return value bool Whether these conditions grant or deny access. File core/lib/Drupal/Core/Condition/ConditionAccessResolverTrait.php, line 23 Class ConditionAcc

ConditionAccessResolverTrait

Resolves a set of conditions. Hierarchy trait \Drupal\Core\Condition\ConditionAccessResolverTrait File core/lib/Drupal/Core/Condition/ConditionAccessResolverTrait.php, line 10 Namespace Drupal\Core\Condition Members Name Modifiers Type Description ConditionAccessResolverTrait::resolveConditions protected function Resolves the given conditions based on the condition logic ('and'/'or').

Condition::__toString

public Condition::__toString() Implements PHP magic __toString method to convert the conditions to string. Return value string A string version of the conditions. File core/lib/Drupal/Core/Database/Query/Condition.php, line 257 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function __toString() { // If the caller forgot to call compile() first, refuse to run. if ($this->changed) { return ''; } retur

Condition::__construct

public Condition::__construct($conjunction) Constructs a Condition object. Parameters string $conjunction: The operator to use to combine conditions: 'AND' or 'OR'. File core/lib/Drupal/Core/Database/Query/Condition.php, line 48 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function __construct($conjunction) { $this->conditions['#conjunction'] = $conjunction; }

Condition::__clone

Condition::__clone() PHP magic __clone() method. Only copies fields that implement Drupal\Core\Database\Query\ConditionInterface. Also sets $this->changed to TRUE. File core/lib/Drupal/Core/Database/Query/Condition.php, line 271 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code function __clone() { $this->changed = TRUE; foreach ($this->conditions as $key => $condition) { if ($key !== '#conjunction') {

Condition::where

public Condition::where($snippet, $args = array()) Adds an arbitrary WHERE clause to the query. Parameters $snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders. $args: An associative array of arguments. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::where File core/lib/Drupal/Core/Database/Query/Condition.php, line 88 Class Condition Generic class for a series of con

Condition::translateCondition

public static Condition::translateCondition(&$condition, SelectInterface $sql_query, $case_sensitive) Translates the string operators to SQL equivalents. Parameters array $condition: The condition array. \Drupal\Core\Database\Query\SelectInterface $sql_query: Select query instance. bool|null $case_sensitive: If the condition should be case sensitive or not, NULL if the field does not define it. Overrides Condition::translateCondition See also \Drupal\Core\Database\Query\ConditionInterface

Condition::translateCondition

public static Condition::translateCondition(&$condition, SelectInterface $sql_query, $case_sensitive) Translates the string operators to SQL equivalents. Parameters array $condition: The condition array. \Drupal\Core\Database\Query\SelectInterface $sql_query: Select query instance. bool|null $case_sensitive: If the condition should be case sensitive or not, NULL if the field does not define it. See also \Drupal\Core\Database\Query\ConditionInterface::condition() File core/lib/Drupal/Core/