showStatistics() public méthode

Display statistics of a task
public showStatistics ( ) : nothing
Résultat nothing
// Original Author of file: Remi Collet
// Purpose of file: Display tab on CronTask form
// ----------------------------------------------------------------------
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
if (!isset($_POST["id"])) {
    exit;
}
if (!isset($_REQUEST['glpi_tab'])) {
    exit;
}
$crontask = new CronTask();
if ($_POST['id'] > 0 && $crontask->getFromDB($_POST['id'])) {
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            $crontask->showStatistics();
            $crontask->showHistory();
            Plugin::displayAction($crontask, $_REQUEST['glpi_tab']);
            break;
        case 2:
            $crontask->showHistory();
            break;
        default:
            if (!Plugin::displayAction($crontask, $_REQUEST['glpi_tab'])) {
                $crontask->showStatistics();
            }
    }
}
ajaxFooter();