Reminder::getAlreadyPlannedInformation PHP Method

getAlreadyPlannedInformation() static public method

Display a Planning Item
static public getAlreadyPlannedInformation ( array $val ) : Already
$val array Array of the item to display
return Already planned information
    static function getAlreadyPlannedInformation(array $val)
    {
        global $CFG_GLPI;
        //TRANS: %1$s is the begin date, %2$s is the end date
        $beginend = sprintf(__('From %1$s to %2$s'), Html::convDateTime($val["begin"]), Html::convDateTime($val["end"]));
        $out = sprintf(__('%1$s: %2$s'), $beginend, "<a href='" . $CFG_GLPI["root_doc"] . "/front/reminder.form.php?id=" . $val["reminders_id"] . "'>" . Html::resume_text($val["name"], 80) . "</a>");
        return $out;
    }