com\setasign\Konquadrat\Cleanup

ObjectCleaner Class ObjectCleaner

File: /Konquadrat/src/Cleanup/ObjectCleaner.php

This class can hard delete objects!

Class hierarchy

Summary

Properties

$applicationConfig

$db

private ObjectCleaner::$db

Methods

cleanup()

public ObjectCleaner::cleanup (
void
): void

Removes all objects which are flagged as deleted.

cleanupHistory()

public ObjectCleaner::cleanupHistory (
void
): void

Removes the history for all non-existing objects.

cleanupImport()

public ObjectCleaner::cleanupImport (
void
): void

cleanupIncompleteObjects()

cleanupObjects()

public ObjectCleaner::cleanupObjects (
array $ids
): void

Removes the objects in $ids.

Parameters
$ids: array
 

cleanupOldObjects()

public ObjectCleaner::cleanupOldObjects (
void
): void

Removes all objects which are flagged as deleted AND older than the configured timespan.

Exceptions

Throws \Exception