ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
NotEmptyConstraint.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Repository\Form
;
22
23
use
ILIAS\Data
;
24
use
ILIAS\Refinery\Custom\Constraint
;
25
use
ilLanguage
;
26
27
class
NotEmpty
extends
Constraint
28
{
29
public
function
__construct
(
Data
\
Factory
$data_factory,
ilLanguage
$lng
)
30
{
31
$lng
->loadLanguageModule(
"rep"
);
32
parent::__construct
(
33
static
function
($value):
bool
{
34
return
trim($value) !==
''
;
35
},
36
static
function
(
$txt
, $value):
string
{
37
return
$txt
(
"rep_input_not_empty"
);
38
},
39
$data_factory,
40
$lng
41
);
42
}
43
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
ILIAS\Data
Definition:
Data.php:24
ILIAS\Refinery\Custom\Constraint
Definition:
Constraint.php:31
ILIAS\Repository\Form\NotEmpty
Definition:
NotEmptyConstraint.php:28
ILIAS\Repository\Form\NotEmpty\__construct
__construct(Data\Factory $data_factory, ilLanguage $lng)
Definition:
NotEmptyConstraint.php:29
ilLanguage
language handling
Definition:
class.ilLanguage.php:43
$txt
$txt
Definition:
error.php:31
ILIAS\Refinery\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:32
ILIAS\Data
Definition:
Alphanumeric.php:24
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\Repository\Form
Definition:
class.FormAdapterGUI.php:21
$lng
global $lng
Definition:
privfeed.php:31
components
ILIAS
Repository
Service
Form
NotEmptyConstraint.php
Generated on Sat Oct 18 2025 23:03:36 for ILIAS by
1.9.4 (using
Doxyfile
)