public function save(Turba_Object $object)
{
$object_id = $this->_save($object);
if ($uid = $object->getValue('__uid')) {
/* Update tags. */
if (!is_null($tags = $object->getValue('__tags'))) {
$GLOBALS['injector']->getInstance('Turba_Tagger')->replaceTags($uid, $tags, $this->getContactOwner(), 'contact');
}
/* Log the modification of this item in the history log. */
try {
$GLOBALS['injector']->getInstance('Horde_History')->log($object->getGuid(), array('action' => 'modify'), true);
} catch (Exception $e) {
Horde::log($e, 'ERR');
}
}
return $object_id;
}