27 DataFactory $data_factory,
34 $trafo_empty2null = $this->refinery->custom()->transformation(
36 if (trim($v) ===
'') {
43 $trafo_numericOrNull = $this->refinery->logical()->logicalOr([
44 $this->refinery->numeric()->isNumeric(),
45 $this->refinery->null()
47 ->withProblemBuilder(
function (
$txt, $value) {
48 return $txt(
"ui_numeric_only");
51 $this->setAdditionalTransformation($trafo_empty2null);
52 $this->setAdditionalTransformation($trafo_numericOrNull);
60 return is_numeric($value) || $value ===
"" || $value ===
null;
68 return $this->refinery->numeric()->isNumeric();
76 return function ($id) {
77 $code =
"$('#$id').on('input', function(event) {
78 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());
80 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());";
An exception for terminatinating execution or to throw for unit testing.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.