19 declare(strict_types=1);
63 $this->format = $data_factory->dateFormat()->standard();
65 $datetime_trafo = $refinery->to()->dateTime();
67 $this->setAdditionalTransformation($trafo);
72 return $this->
refinery->custom()->transformation(
73 function ($v) use ($or_trafo) {
77 return $or_trafo->transform($v);
92 $value = $this->format->applyTo($value);
96 $clone->value = $value;
102 $clone = clone $this;
115 $timezone_trafo = $this->
refinery->dateTime()->changeTimezone($tz);
116 $clone = clone $this;
117 $clone->timezone = $tz;
120 $clone = $clone->withAdditionalTransformation($trafo);
131 $clone = clone $this;
132 $clone->min_date = $datetime;
143 $clone = clone $this;
144 $clone->max_date = $datetime;
155 $clone = clone $this;
167 $clone = clone $this;
168 $clone->with_time_only = $time_only;
179 return is_string($value);
184 if ($this->requirement_constraint !== null) {
185 return $this->requirement_constraint;
188 return $this->
refinery->string()->hasMinLength(1)
189 ->withProblemBuilder(fn (
$txt, $value) =>
$txt(
"datetime_required"));
207 $clone = clone $this;
208 $clone->additional_picker_config = array_merge($clone->additional_picker_config, $config);
214 return fn (
$id) =>
"$('#$id').on('input dp.change', function(event) { 215 il.UI.input.onFieldUpdate(event, '$id', $('#$id').find('input').val()); 217 il.UI.input.onFieldUpdate(event, '$id', $('#$id').find('input').val());";
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
A constraint encodes some resrtictions on values.
__construct(Container $dic, ilPlugin $plugin)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Refinery Factory $refinery