You are here

protected function DatabaseAggregatorSensorPlugin::translateCondition in Monitoring 8

Translates the string operators to SQL equivalents.

Parameters

array $condition: The condition array.

\Drupal\Core\Database\Query\SelectInterface $select: The database select query.

4 calls to DatabaseAggregatorSensorPlugin::translateCondition()
DatabaseAggregatorSensorPlugin::getAggregateQuery in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Builds simple aggregate query over one db table.
DatabaseAggregatorSensorPlugin::getHistoryQuery in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Builds history query over one db table.
DatabaseAggregatorSensorPlugin::getOldestEntry in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Get the timestamp of the oldest entry that fits owr conditions.
DatabaseAggregatorSensorPlugin::getQuery in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Builds the query for verbose output.

File

src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php, line 138
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\DatabaseAggregatorSensorPlugin.

Class

DatabaseAggregatorSensorPlugin
Database aggregator able to query a single db table.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

protected function translateCondition(array &$condition, SelectInterface $select) {
  $tables = new Tables($select);
  Condition::translateCondition($condition, $select, $tables
    ->isFieldCaseSensitive($condition['field']));
}