19declare(strict_types=1);
42 throw new InvalidArgumentException(
'Numbers less than 0 are not allowed');
45 if (!in_array(
$status, self::$STATUS)) {
46 throw new InvalidArgumentException(
"No valid status: '$status'");
61 throw new InvalidArgumentException(
'Numbers less than 0 are not allowed');
76 if (!in_array(
$status, self::$STATUS)) {
77 throw new InvalidArgumentException(
"No valid status: '$status'");
91 ->numeric(
$lng->txt(
'prg_points'),
$lng->txt(
'prg_points_byline'))
97 $lng->txt(
'prg_status'),
98 $this->getStatusOptions(
$lng),
99 $lng->txt(
'prg_status_byline')
105 return $input->section(
110 $lng->txt(
'prg_assessment')
112 ->withAdditionalTransformation(
$refinery->custom()->transformation(
function ($vals) {
114 (
int) $vals[
'points'],
115 (
int) $vals[
'status']
static return function(ContainerConfigurator $containerConfigurator)
__construct(int $points, int $status)
getStatusOptions(ilLanguage $lng)
toFormInput(Field\Factory $input, ilLanguage $lng, Refinery $refinery)
Refinery Factory $refinery
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.