protected function VotingApi_ResultCriteria::addConditions in Voting API 7.3
2 calls to VotingApi_ResultCriteria::addConditions()
- VotingApi_ResultCriteria::delete in ./
votingapi.module - VotingApi_ResultCriteria::select in ./
votingapi.module - Select cached vote results from the database.
File
- ./
votingapi.module, line 244 - A generalized voting API for Drupal.
Class
- VotingApi_ResultCriteria
- Criteria to select VotingApi_Results
Code
protected function addConditions(&$query) {
foreach ($this as $key => $value) {
if (!isset($value)) {
continue;
}
$query
->condition($key, $value, is_array($value) ? 'IN' : '=');
}
}