19 declare(strict_types=1);
31 static function ($value) use ($max_length):
bool {
32 return strlen($value) <= $max_length;
34 static function (
$txt, $value) use ($max_length):
string {
35 return $txt(
"not_max_length", $max_length);
Interface Observer Contains several chained tasks and infos about them.
A constraint encodes some resrtictions on values.
__construct(Container $dic, ilPlugin $plugin)
__construct(int $max_length, Data\Factory $data_factory, \ILIAS\Language\Language $lng)