ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\Implementation\Component\Input\Field\Numeric\IsNumeric Class Reference
+ Inheritance diagram for ILIAS\UI\Implementation\Component\Input\Field\Numeric\IsNumeric:
+ Collaboration diagram for ILIAS\UI\Implementation\Component\Input\Field\Numeric\IsNumeric:

Public Member Functions

 __construct (Data\Factory $data_factory, \ILIAS\Language\Language $lng)
 
- Public Member Functions inherited from ILIAS\Refinery\Constraint
 check ($value)
 Checks the provided value. More...
 
 accepts ($value)
 Tells if the provided value complies. More...
 
 problemWith ($value)
 Tells what the problem with the provided value is. More...
 
 applyTo (Result $result)
 Restricts a Result. More...
 
 withProblemBuilder (callable $builder)
 Get a constraint like this one with a builder for a custom error message. More...
 
- Public Member Functions inherited from ILIAS\Refinery\Transformation
 transform ($from)
 Perform the transformation. More...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Detailed Description

Definition at line 26 of file IsNumeric.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Implementation\Component\Input\Field\Numeric\IsNumeric::__construct ( Data\Factory  $data_factory,
\ILIAS\Language\Language  $lng 
)

Definition at line 28 of file IsNumeric.php.

References $lng, $txt, and ILIAS\GlobalScreen\Provider\__construct().

29  {
31  static function ($value): bool {
32  return is_numeric($value);
33  },
34  static function ($txt, $value): string {
35  if ('' === $value) {
36  return (string) $txt("not_numeric_empty_string");
37  }
38 
39  return (string) $txt("not_numeric", $value);
40  },
41  $data_factory,
42  $lng
43  );
44  }
$txt
Definition: error.php:31
__construct(Container $dic, ilPlugin $plugin)
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: