23use ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\BasicScalarValueFactory;
37 use BasicScalarValueFactory;
60 foreach ($expectedTypes as $i => $expectedType) {
62 if (!$givenType->isExtensionOf($expectedType)) {
65 .
". Expected type $expectedType given type $givenType.");
76 if (is_a($value, Value::class)) {
77 return $value->getType();
79 if (is_a($value, Task::class)) {
80 return $value->getOutputType();
93 $thunk->setParentTask($this);
106 foreach ($values as $value) {
107 if ($value instanceof
Task) {
108 $inputs[] = $value->getOutput();
109 } elseif ($value instanceof
Value) {
112 $inputs[] = $this->wrapScalar($value);
129 return static::class;
142 $list = array_merge($list,
$input->getParentTask()->unfoldTask());
Class Exception Thrown if some procedure did not get the arguments it expected.
unfoldTask()
Unfold the task.
getAbortOption()
Option In case a Job is failed or did not respond for some time, an Abort-Option is displayed....
getRemoveOption()
Option An Option to remove the current task and do some cleanup if possible. This Option is displayed...
checkTypes(array $values)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...