/** * Modify existing object data. * * @param string $guid The GUID of the object to be added. * @param array $data The attributes of the object to be added. * * @return NULL * * @throws Horde_Kolab_Server_Exception */ public function save(Horde_Kolab_Server_Object_Interface $object, array $data) { //@todo: This will not work this way as we need to map internal // attributes. $this->mapAttributes($data); $this->_server->save($object, $data); }
/** * Modify existing object data. * * @param Horde_Kolab_Server_Object $object The object to be modified. * @param array $data The attributes of the object * to be stored. * * @return NULL * * @throws Horde_Kolab_Server_Exception */ public function save(Horde_Kolab_Server_Object_Interface $object, array $data) { try { $this->_server->save($object, $data); $this->_logger->debug(sprintf("The object \"%s\" has been successfully saved!", $object->getGuid())); } catch (Horde_Kolab_Server_Exception $e) { $this->_logger->warn(sprintf("Failed saving object \"%s\"! Error: %s", $object->getGuid(), $e->getMessage())); } }
/** * Modify existing object data. * * @param Horde_Kolab_Server_Object $object The object to be modified. * @param array $data The attributes of the object * to be stored. * * @return NULL * * @throws Horde_Kolab_Server_Exception */ public function save(Horde_Kolab_Server_Object_Interface $object, array $data) { $this->_server->save($object, $data); if (!isset($this->_count['save'])) { $this->_count['save'] = 1; } else { $this->_count['save']++; } }
/** * Modify existing object data. * * @param Horde_Kolab_Server_Object $object The object to be modified. * @param array $data The attributes of the object * to be stored. * * @return NULL * * @throws Horde_Kolab_Server_Exception */ public function save(Horde_Kolab_Server_Object_Interface $object, array $data) { $this->_server->save($object, $data); }