/** * Delete the specified objects from this data set. * * @param array|string $object_ids Id(s) of the object to be deleted. * * @return NULL */ public function delete($object_ids) { if (is_array($object_ids)) { $ids = join(', ', $object_ids); } else { $ids = $object_ids; } $this->_logger->debug(sprintf('Deleting data object(s) %s in %s.', $ids, $this->_data->getPath())); $this->_data->delete($object_ids); $this->_logger->debug(sprintf('Deleted data object(s) %s in %s.', $ids, $this->_data->getPath())); }
/** * Deletes an event. * * @param string $eventId The ID of the event to delete. * * @throws Kronolith_Exception * @throws Horde_Exception_NotFound * @throws Horde_Mime_Exception */ protected function _deleteEvent($eventId, $silent = false) { if ($eventId instanceof Kronolith_Event) { $event = $eventId; $this->synchronize(); } else { $event = $this->getEvent($eventId); } $this->_data->delete($event->uid); unset($this->_events_cache[$event->id]); /* Notify about the deleted event. */ if (!$silent) { $this->_handleNotifications($event, 'delete'); } return $event; }