ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Refinery\Integer\LessThanOrEqual Class Reference
+ Inheritance diagram for ILIAS\Refinery\Integer\LessThanOrEqual:
+ Collaboration diagram for ILIAS\Refinery\Integer\LessThanOrEqual:

Public Member Functions

 __construct (int $max, 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...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Detailed Description

Definition at line 27 of file LessThanOrEqual.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Integer\LessThanOrEqual::__construct ( int  $max,
Data\Factory  $data_factory,
ilLanguage  $lng 
)

Definition at line 29 of file LessThanOrEqual.php.

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

30  {
32  static function ($value) use ($max): bool {
33  return $value <= $max;
34  },
35  static function ($txt, $value) use ($max): string {
36  return (string) $txt("not_less_than_or_equal", $max);
37  },
38  $data_factory,
39  $lng
40  );
41  }
$lng
$txt
Definition: error.php:13
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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