ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
LessThan.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Refinery\Integer
;
22
23
use
ILIAS\Data
;
24
use
ILIAS\Refinery\Custom\Constraint
;
25
use
ilLanguage
;
26
27
class
LessThan
extends
Constraint
28
{
29
public
function
__construct
(
int
$max, Data\
Factory
$data_factory,
ilLanguage
$lng
)
30
{
31
parent::__construct
(
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
}
ILIAS\Refinery\Integer
Definition:
GreaterThan.php:21
ilLanguage
ILIAS\Refinery\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:31
ILIAS\Refinery\Integer\LessThan
Definition:
LessThan.php:27
Constraint
ILIAS\Refinery\Integer\LessThan\__construct
__construct(int $max, Data\Factory $data_factory, ilLanguage $lng)
Definition:
LessThan.php:29
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
Factory
$lng
$lng
Definition:
save_question_post_data.php:24
$txt
$txt
Definition:
error.php:14
ILIAS\Data
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Alphanumeric.php:11
src
Refinery
Integer
LessThan.php
Generated on Wed Sep 10 2025 14:12:07 for ILIAS by
1.8.13 (using
Doxyfile
)