3 declare(strict_types=1);
32 static function ($value) use ($min_length):
bool {
33 return strlen($value) >= $min_length;
35 static function (
$txt, $value) use ($min_length):
string {
36 $len = strlen($value);
37 return $txt(
"not_min_length", $len, $min_length);
A constraint encodes some resrtictions on values.
__construct(int $min_length, Data\Factory $data_factory, ilLanguage $lng)
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...