resetDate() public méthode

reset the next launch date => for a launch as soon as possible
public resetDate ( )
Exemple #1
0
    }
    if ($name) {
        //TRANS: %s is a task name
        Session::addMessageAfterRedirect(sprintf(__('Task %s executed'), $name));
    }
    Html::back();
} else {
    if (isset($_POST["update"])) {
        Session::checkRight('config', UPDATE);
        $crontask->update($_POST);
        Html::back();
    } else {
        if (isset($_POST['resetdate']) && isset($_POST["id"])) {
            Session::checkRight('config', UPDATE);
            if ($crontask->getFromDB($_POST["id"])) {
                $crontask->resetDate();
            }
            Html::back();
        } else {
            if (isset($_POST['resetstate']) && isset($_POST["id"])) {
                Session::checkRight('config', UPDATE);
                if ($crontask->getFromDB($_POST["id"])) {
                    $crontask->resetState();
                }
                Html::back();
            } else {
                if (!isset($_GET["id"]) || empty($_GET["id"])) {
                    exit;
                }
                Html::header(Crontask::getTypeName(Session::getPluralNumber()), $_SERVER['PHP_SELF'], 'config', 'crontask');
                $crontask->display(array('id' => $_GET["id"]));