31 'batch_inc_offset' =>
false,
41 function(QueryBuilder
$qb, $main_alias) {
45 $sub->select(
'guid_one')
48 return $qb->compare(
"{$main_alias}.guid",
'not in', $sub->getSQL());
52 'property' =>
'time_deleted',
57 $starttime = microtime(
true);
60 foreach ($entities as
$entity) {
61 if ((microtime(
true) - $starttime) > 300) {
66 if (!
$entity->delete(
true,
true)) {
67 $entities->reportFailure();
Database abstraction query builder.
Relationships table database service.
Cleanup deleted entities from the database.
__invoke(\Elgg\Event $event)
After a grace period remove deleted entities from the database.
Models an event passed to event handlers.
static normalizeTimestamp($time)
Returns timestamp value of the time representation.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
const ELGG_IGNORE_ACCESS
elgg_call() flags
const ELGG_SHOW_DISABLED_ENTITIES
const ELGG_VALUE_TIMESTAMP
const ELGG_SHOW_DELETED_ENTITIES
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags.
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
$retention
Show a notice about the retention period of trashed items.