function Connection::mapConditionOperator
Gets any special processing requirements for the condition operator.
Some condition types require special processing, such as IN, because the value data they pass in is not a simple value. This is a simple overridable lookup function. Database connections should define only those operators they wish to be handled differently than the default.
Parameters
string $operator: The condition operator, such as "IN", "BETWEEN", etc. Case-sensitive.
Return value
The extra handling directives for the specified operator, or NULL.
Overrides Connection::mapConditionOperator
File
-
core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Connection.php, line 394
Class
- Connection
- SQLite implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\Core\Database\Driver\sqliteCode
public function mapConditionOperator($operator) {
return isset(static::$sqliteConditionOperatorMap[$operator]) ? static::$sqliteConditionOperatorMap[$operator] : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.