function DatabaseCondition::__construct

Constructs a DataBaseCondition object.

Parameters

string $conjunction: The operator to use to combine conditions: 'AND' or 'OR'.

File

includes/database/query.inc, line 1718

Class

DatabaseCondition
Generic class for a series of conditions in a query.

Code

public function __construct($conjunction) {
    $this->conditions['#conjunction'] = $conjunction;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.