/** * Convert cache metas into Zend cache tags * * @param array $metas : the cache metas to convert * @return array Zend cache tags * @access private */ protected function _createTags($metas) { $tags = array(); if (!is_array($metas)) { return $tags; } foreach ($metas as $name => $value) { if (is_array($value)) { foreach ($value as $aValue) { $tag = str_replace('-', '_', io::sanitizeURLString($name . '-' . $aValue)); $tags[$tag] = $tag; } } else { $tag = str_replace('-', '_', io::sanitizeURLString($name . '-' . $value)); $tags[$tag] = $tag; } } $tags = array_values($tags); return $tags; }