You are here

abstract class ConditionBase in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Query/ConditionBase.php \Drupal\Core\Entity\Query\ConditionBase

Defines a common base class for all entity condition implementations.

Hierarchy

Expanded class hierarchy of ConditionBase

3 files declare their use of ConditionBase
Condition.php in core/lib/Drupal/Core/Config/Entity/Query/Condition.php
Contains \Drupal\Core\Config\Entity\Query\Condition.
Condition.php in core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
Contains \Drupal\Core\Entity\Query\Sql\Condition.
Condition.php in core/lib/Drupal/Core/Entity/Query/Null/Condition.php
Contains \Drupal\Core\Entity\Query\Null\Condition.

File

core/lib/Drupal/Core/Entity/Query/ConditionBase.php, line 13
Contains \Drupal\Core\Entity\Query\ConditionBase.

Namespace

Drupal\Core\Entity\Query
View source
abstract class ConditionBase extends ConditionFundamentals implements ConditionInterface {

  /**
   * {@inheritdoc}
   */
  public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL) {
    $this->conditions[] = array(
      'field' => $field,
      'value' => $value,
      'operator' => $operator,
      'langcode' => $langcode,
    );
    return $this;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConditionBase::condition public function Adds a condition. Overrides ConditionInterface::condition
ConditionFundamentals::$conditions protected property Array of conditions.
ConditionFundamentals::$conjunction protected property The conjunction of this condition group. The value is one of the following:
ConditionFundamentals::$namespaces protected property List of potential namespaces of the classes belonging to this condition.
ConditionFundamentals::$query protected property The query this condition belongs to. 1
ConditionFundamentals::conditions public function
ConditionFundamentals::count public function
ConditionFundamentals::getConjunction public function
ConditionFundamentals::__clone public function Implements the magic __clone function.
ConditionFundamentals::__construct public function Constructs a Condition object.
ConditionInterface::compile public function Compiles this conditional clause.
ConditionInterface::exists public function Queries for the existence of a field.
ConditionInterface::notExists public function Queries for the existence of a field.