ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\Implementation\Component\Input\Container\Form\NotEmpty Class Reference
+ Inheritance diagram for ILIAS\UI\Implementation\Component\Input\Container\Form\NotEmpty:
+ Collaboration diagram for ILIAS\UI\Implementation\Component\Input\Container\Form\NotEmpty:

Public Member Functions

 __construct (Data\Factory $data_factory, ilLanguage $lng)
 
- Public Member Functions inherited from ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint
 __construct (callable $is_ok, $error, Data\Factory $data_factory, \ILIAS\Language\Language $lng)
 If $error is a callable it needs to take two parameters: More...
 
 check ($value)
 
 accepts ($value)
 
 problemWith ($value)
 
 applyTo (Result $result)
 
- Public Member Functions inherited from ILIAS\Refinery\Constraint
 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...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint
 getError ()
 
- Protected Attributes inherited from ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint
Data Factory $data_factory
 
ILIAS Language Language $lng
 
 $is_ok
 
 $error
 

Detailed Description

Definition at line 27 of file NotEmptyConstraint.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Implementation\Component\Input\Container\Form\NotEmpty::__construct ( Data\Factory  $data_factory,
ilLanguage  $lng 
)

Definition at line 29 of file NotEmptyConstraint.php.

References ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$data_factory, ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$lng, $txt, ILIAS\GlobalScreen\Provider\__construct(), and ilLanguage\loadLanguageModule().

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  },
40  $lng
41  );
42  }
loadLanguageModule(string $a_module)
Load language module.
$txt
Definition: error.php:31
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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