Condition::isNotNull

public Condition::isNotNull($field) Sets a condition that the specified field be NOT NULL. Parameters $field: The name of the field to check. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::isNotNull File core/lib/Drupal/Core/Database/Query/Condition.php, line 109 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function isNotNull($field) { return $this-

Condition::exists

public Condition::exists($field, $langcode = NULL) Queries for the existence of a field. Parameters $field: string $langcode: Return value ConditionInterface Overrides ConditionInterface::exists See also \Drupal\Core\Entity\Query\QueryInterface::exists() File core/lib/Drupal/Core/Config/Entity/Query/Condition.php, line 86 Class Condition Defines the condition class for the config entity query. Namespace Drupal\Core\Config\Entity\Query Code public function exists($field, $langcode =

Condition::exists

public Condition::exists($field, $langcode = NULL) Queries for the existence of a field. Parameters $field: string $langcode: Return value ConditionInterface Overrides ConditionInterface::exists See also \Drupal\Core\Entity\Query\QueryInterface::exists() File core/lib/Drupal/Core/Entity/Query/Null/Condition.php, line 21 Class Condition Defines the condition class for the null entity query. Namespace Drupal\Core\Entity\Query\Null Code public function exists($field, $langcode = NULL)

Condition::conditionGroupFactory

public Condition::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/Core/Database

Condition::condition

public Condition::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 used to tel

Condition::exists

public Condition::exists(SelectInterface $select) Sets a condition that the specified subquery returns values. Parameters \Drupal\Core\Database\Query\SelectInterface $select: The subquery that must contain results. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::exists File core/lib/Drupal/Core/Database/Query/Condition.php, line 116 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Da

Condition::conditions

public &Condition::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 i

Condition::count

public Condition::count() Implements Countable::count(). Returns the size of this conditional. The size of the conditional is the size of its conditional array minus one, because one element is the conjunction. File core/lib/Drupal/Core/Database/Query/Condition.php, line 59 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function count() { return count($this->conditions) - 1; }

Condition::compile

public Condition::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/lib/Drupal/C

Condition::arguments

public Condition::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/Condition.php, line 137 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function arguments() { // If the caller forgot to call compile() first, refuse to run. if ($this