Kronolith_Driver::_updateTags PHP 메소드

_updateTags() 보호된 메소드

Helper function to update an existing event's tags to tagger storage.
protected _updateTags ( Kronolith_Event $event )
$event Kronolith_Event The event to update
    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);
    }