19 declare(strict_types=1);
52 $txt_id =
'ui_invalid_url';
54 $is_ok =
function ($v) {
55 if (is_string($v) && trim($v) ===
'') {
59 $this->data_factory->uri($v);
66 $from_before_until = $this->
refinery->custom()->constraint($is_ok,
$error);
67 $this->setAdditionalTransformation($from_before_until);
72 $trafo = $this->
refinery->custom()->transformation(
function ($v): ?\
ILIAS\Data\
URI {
73 if (is_string($v) && trim($v) ===
'') {
76 return $this->data_factory->uri($v);
79 $this->setAdditionalTransformation($trafo);
87 return static function (
string $value):
bool {
102 if (is_string($value) && trim($value) ===
"") {
106 if (!self::getURIChecker()) {
117 if ($this->requirement_constraint !== null) {
118 return $this->requirement_constraint;
121 return $this->
refinery->custom()->constraint(self::getURIChecker(),
'Not an URI');
129 return fn (
$id) =>
"$('#$id').on('input', function(event) { 130 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val()); 132 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());";
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A constraint encodes some resrtictions on values.
The scope of this class is split ilias-conform URI's into components.
__construct(Container $dic, ilPlugin $plugin)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Refinery Factory $refinery