<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

class AggregateStatisticsTask implements Task
{
  public function execute()
  {
    $allgSettings = AllgSettingsAPI::getAllgSettings();
    $allgSettings->aggregate_session_id = md5(SessionOperations::getSessionID());
    $allgSettings->aggregate_start_time = time();
    AllgSettingsAPI::setAllgSettings($allgSettings);
    StatistikAPI::aggregiereStatistiken();
  }
}