public getIdsMatchingTags ( array $tags = [] ) : array | ||
$tags | array | |
return | array |
public function getIdsMatchingTags($tags = [])
{
$tags_ = [];
foreach ($tags as $tag) {
$tags_[] = " tag = " . $this->getDb()->quote($tag);
}
$itemIds = $this->getDb()->fetchCol("SELECT id FROM cache_tags WHERE " . implode(" AND ", $tags_));
return $itemIds;
}