ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ConcatenationJob.php
Go to the documentation of this file.
1<?php
2
20
29
31{
36 public function run(array $input, Observer $observer): Value
37 {
39 $list = $input[0]->getList();
41 $values = array_map(
42 fn($a) => $a->getValue(),
43 $list
44 );
45
46 $string_value = new StringValue();
47 $string_value->setValue(implode(', ', $values));
48
49 return $string_value;
50 }
51
56 public function isStateless(): bool
57 {
58 return true;
59 }
60
61 public function getId(): string
62 {
63 return static::class;
64 }
65
69 public function getInputTypes(): array
70 {
71 return [new ListType(ScalarValue::class)];
72 }
73
74 public function getOutputType(): Type
75 {
76 return new SingleType(StringValue::class);
77 }
78
83 {
84 return 1;
85 }
86}
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
run(array $input, Observer $observer)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples