19 declare(strict_types=1);
    40         $arguments = array_map(
static function ($value) {
    41             return $value->getValue();
    44         $DIC->logger()->mail()->info(
'Mail delivery background task executed');
    46         $DIC->logger()->mail()->debug(sprintf(
    48             json_encode(array_slice($arguments, 0, 5), JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT)
    51         $context_parameters = (array) unserialize($input[10]->
getValue(), [
'allowed_classes' => 
false]);
    59         if (isset($context_parameters[
'auto_responder'])) {
    60             if ($context_parameters[
'auto_responder']) {
    61                 $mail->autoresponder()->enableAutoresponder();
    63                 $mail->autoresponder()->disableAutoresponder();
    67         $mail->setSaveInSentbox((
bool) $input[8]->
getValue());
    69             ->withContextId((
string) $input[9]->
getValue())
    70             ->withContextParameters($context_parameters);
    78             (array) unserialize($input[6]->
getValue(), [
'allowed_classes' => 
false]),  
    81         $mail->sendMail($mail_data);
    83         $DIC->logger()->mail()->info(
'Mail delivery background task finished');
 
ILIAS BackgroundTasks Value $output
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getExpectedTimeOfTaskInSeconds()
 
run(array $input, Observer $observer)