19declare(strict_types=1);
40 DataFactory $data_factory,
52 $txt_id =
'ui_invalid_url';
54 $is_ok =
function ($v) {
55 if (is_string($v) && trim($v) ===
'') {
59 $this->data_factory->uri($v);
60 }
catch (Throwable
$e) {
66 $from_before_until = $this->
refinery->custom()->constraint($is_ok,
$error);
67 $this->setAdditionalTransformation($from_before_until);
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 {
90 }
catch (Throwable
$e) {
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());";
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
The scope of this class is split ilias-conform URI's into components.
A constraint encodes some resrtictions on values.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.