ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Repository\Form\NotEmpty Class Reference
+ Inheritance diagram for ILIAS\Repository\Form\NotEmpty:
+ Collaboration diagram for ILIAS\Repository\Form\NotEmpty:

Public Member Functions

 __construct (Data\Factory $data_factory, ilLanguage $lng)
 
- Public Member Functions inherited from ILIAS\Refinery\Constraint
 check ($value)
 Checks the provided value. More...
 
 accepts ($value)
 Tells if the provided value complies. More...
 
 problemWith ($value)
 Tells what the problem with the provided value is. More...
 
 applyTo (Result $result)
 Restricts a Result. More...
 
 withProblemBuilder (callable $builder)
 Get a constraint like this one with a builder for a custom error message. More...
 
- Public Member Functions inherited from ILIAS\Refinery\Transformation
 transform ($from)
 Perform the transformation. More...
 
 applyTo (Result $result)
 Perform the transformation and reify possible failures. More...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Detailed Description

Definition at line 27 of file NotEmptyConstraint.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Form\NotEmpty::__construct ( Data\Factory  $data_factory,
ilLanguage  $lng 
)

Definition at line 29 of file NotEmptyConstraint.php.

30 {
31 $lng->loadLanguageModule("rep");
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 }
$txt
Definition: error.php:31
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31

References $lng, $txt, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: