deleteAll() public method

Delete all objects from this data set.
public deleteAll ( ) : null
return null
Example #1
0
 /**
  * Delete a calendar and all its events.
  *
  * @param string $calendar  The name of the calendar to delete.
  *
  * @throws Kronolith_Exception
  */
 public function delete($calendar)
 {
     $this->open($calendar);
     $result = $this->synchronize();
     $result = $this->_data->deleteAll($calendar);
     if (is_callable('Kolab', 'triggerFreeBusyUpdate')) {
         //Kolab::triggerFreeBusyUpdate($this->_data->parseFolder($calendar));
     }
 }
Example #2
0
File: Log.php Project: horde/horde
 /**
  * Delete all objects from this data set.
  *
  * @return NULL
  */
 public function deleteAll()
 {
     $this->_logger->debug(sprintf('Deleting all data objects in %s.', $this->_data->getPath()));
     $this->_data->deleteAll();
     $this->_logger->debug(sprintf('Deleted all data objects in %s.', $this->_data->getPath()));
 }