75 $this->format = $data_factory->dateFormat()->standard();
77 $datetime_trafo = $refinery->to()->dateTime();
79 $this->setAdditionalTransformation($trafo);
85 return $this->refinery->custom()->transformation(
86 function ($v) use ($or_trafo) {
90 return $or_trafo->transform($v);
100 $clone = clone $this;
116 $timezone_trafo = $this->refinery->dateTime()->changeTimezone($tz);
117 $clone = clone $this;
118 $clone->timezone = $tz;
120 $trafo = $this->getOptionalNullTransformation($timezone_trafo);
124 $clone = $clone->withAdditionalTransformation($trafo);
133 return $this->timezone;
141 $clone = clone $this;
142 $clone->min_date = $date;
151 return $this->min_date;
159 $clone = clone $this;
160 $clone->max_date = $date;
169 return $this->max_date;
177 $clone = clone $this;
178 $clone->with_time = $with_time;
187 return $this->with_time;
195 $clone = clone $this;
196 $clone->with_time_only = $with_time_only;
205 return $this->with_time_only;
213 return is_string($value);
221 return $this->refinery->string()->hasMinLength(1)
222 ->withProblemBuilder(
function (
$txt, $value) {
223 return $txt(
"datetime_required");
233 return $this->additional_picker_config;
243 $clone = clone $this;
244 $clone->additional_picker_config = array_merge($clone->additional_picker_config, $config);
253 return function ($id) {
254 $code =
"$('#$id').on('input dp.change', function(event) { 255 il.UI.input.onFieldUpdate(event, '$id', $('#$id').find('input').val()); 257 il.UI.input.onFieldUpdate(event, '$id', $('#$id').find('input').val());";
Class ChatMainBarProvider .
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.
__construct(Container $dic, ilPlugin $plugin)