protected function _updateTags(Kronolith_Event $event)
{
Kronolith::getTagger()->replaceTags($event->uid, $event->tags, $event->creator, Kronolith_Tagger::TYPE_EVENT);
// Resources don't currently have owners, so can't tag as owner.
if ($event->calendarType == 'resource') {
return;
}
// Add tags again, but as the share owner (replaceTags removes ALL tags)
try {
$cal = $GLOBALS['injector']->getInstance('Kronolith_Shares')->getShare($event->calendar);
} catch (Horde_Share_Exception $e) {
throw new Kronolith_Exception($e);
}
Kronolith::getTagger()->tag($event->uid, $event->tags, $cal->get('owner'), Kronolith_Tagger::TYPE_EVENT);
}