예제 #1
0
파일: Map.php 프로젝트: jubinpatel/horde
 /**
  * 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);
 }
예제 #2
0
파일: Log.php 프로젝트: horde/horde
 /**
  * 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()));
     }
 }
예제 #3
0
파일: Count.php 프로젝트: horde/horde
 /**
  * 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']++;
     }
 }
예제 #4
0
파일: Clean.php 프로젝트: raz0rsdge/horde
 /**
  * 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);
 }