unset($this->availableObjectTypes[$key]);
}
- if (!$objectType->getProcessor() instanceof ICombinedTaggable) {
+ if (!($objectType->getProcessor() instanceof ICombinedTaggable)) {
unset($this->availableObjectTypes[$key]);
}
}
];
}
- public function setJoinCondition($objectType, array $tags, PreparedStatementConditionBuilder $conditions) {
- $conditions->add('tag_to_object.objectTypeID = ?', [$this->getObjectTypeID($objectType)]);
-
- $tagIDs = [];
- foreach ($tags as $tag) {
- $tagIDs[] = $tag->tagID;
- }
- $conditions->add('tag_to_object.tagID IN (?)', [$tagIDs]);
- }
-
- public function getSqlGroupAndHaving(array $tags) {
- return 'GROUP BY tag_to_object.objectID HAVING COUNT(tag_to_object.objectID) = ' . count($tags);
- }
-
/**
* Returns the matching tags by name.
*