12 $header .= 
'<th>' . 
elgg_echo(
'admin:statistics:queue:newest') . 
'</th></tr>';
 
   14 $qb = Select::fromTable(DatabaseQueue::TABLE_NAME);
 
   15 $qb->select(
'DISTINCT name');
 
   24     $qb = Select::fromTable(DatabaseQueue::TABLE_NAME);
 
   25     $qb->select(
'COUNT(*) AS total');
 
   31     $qb = Select::fromTable(DatabaseQueue::TABLE_NAME);
 
   32     $qb->select(
'MIN(timestamp) AS min');
 
   36     $oldest = empty($oldest) ? 0 : (int) $oldest->min;
 
   37     $oldest = 
elgg_view(
'output/datetime-local', [
'value' => $oldest]);
 
   39     $qb = Select::fromTable(DatabaseQueue::TABLE_NAME);
 
   40     $qb->select(
'MAX(timestamp) AS max');
 
   44     $newest = empty($newest) ? 0 : (int) $newest->max;
 
   45     $newest = 
elgg_view(
'output/datetime-local', [
'value' => $newest]);
 
   47     $rows .= 
"<tr><td>{$queue->name}</td><td>{$row_count}</td><td>{$oldest}</td><td>{$newest}</td></tr>";
 
   50 $body = 
"<table class='elgg-table'><thead>{$header}</thead><tbody>{$rows}</tbody></table>";
 
Query builder for fetching data from the database.
FIFO queue that uses the database for persistence.
_elgg_services()
Get the global service provider.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
elgg_number_format(float $number, int $decimals=0)
Format a number with grouped thousands using language specific separators.
foreach($queue_names as $queue) $body
if(empty($queue_names)) $rows