ILIAS  release_8 Revision v8.24
LessThan.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
23use ILIAS\Data;
25use ilLanguage;
26
27class LessThan extends Constraint
28{
29 public function __construct(int $max, Data\Factory $data_factory, ilLanguage $lng)
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", $value, $max);
37 },
38 $data_factory,
39 $lng
40 );
41 }
42}
Builds data types.
Definition: Factory.php:21
__construct(int $max, Data\Factory $data_factory, ilLanguage $lng)
Definition: LessThan.php:29
language handling
$txt
Definition: error.php:13
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: GreaterThan.php:21
$lng