ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
◀ 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
26
class
LessThan
extends
Constraint
27
{
28
public
function
__construct
(
int
$max,
Data
\
Factory
$data_factory, \
ILIAS
\
Language
\
Language
$lng
)
29
{
30
parent::__construct
(
31
static
function
($value) use ($max):
bool
{
32
return
$value < $max;
33
},
34
static
function
($txt, $value) use ($max):
string
{
35
return
(
string
) $txt(
"not_less_than"
, $value, $max);
36
},
37
$data_factory,
38
$lng
39
);
40
}
41
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
ILIAS\Data
Definition:
Data.php:24
ILIAS\Refinery\Custom\Constraint
Definition:
Constraint.php:31
ILIAS\Refinery\Integer\LessThan
Definition:
LessThan.php:27
ILIAS\Refinery\Integer\LessThan\__construct
__construct(int $max, Data\Factory $data_factory, \ILIAS\Language\Language $lng)
Definition:
LessThan.php:28
ILIAS\Language\Language
Definition:
Language.php:24
ILIAS\Refinery\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:32
ILIAS\Data
Definition:
Alphanumeric.php:24
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\Refinery\Integer
Definition:
GreaterThan.php:21
ILIAS
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
$lng
global $lng
Definition:
privfeed.php:31
components
ILIAS
Refinery
src
Integer
LessThan.php
Generated on Sat Dec 13 2025 23:02:50 for ILIAS by
1.9.4 (using
Doxyfile
)