ILIAS  release_8 Revision v8.24
MyValidationConstraintsConstraint Class Reference
+ Inheritance diagram for MyValidationConstraintsConstraint:
+ Collaboration diagram for MyValidationConstraintsConstraint:

Public Member Functions

 _getLngClosure ()
 
- Public Member Functions inherited from ILIAS\Refinery\Custom\Constraint
 __construct (callable $is_ok, $error, Data\Factory $data_factory, ilLanguage $lng)
 If $error is a callable it needs to take two parameters: More...
 
 check ($value)
 @inheritDoc More...
 
 accepts ($value)
 @inheritDoc More...
 
 problemWith ($value)
 @inheritDoc More...
 
 applyTo (Result $result)
 @inheritDoc More...
 
- 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...
 
 applyTo (Result $result)
 Perform the transformation and reify possible failures. More...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\Refinery\Custom\Constraint
 getError ()
 @inheritDoc More...
 
- Protected Attributes inherited from ILIAS\Refinery\Custom\Constraint
Data Factory $data_factory
 
ilLanguage $lng
 
 $is_ok
 
 $error
 

Detailed Description

Definition at line 25 of file CustomTest.php.

Member Function Documentation

◆ _getLngClosure()

MyValidationConstraintsConstraint::_getLngClosure ( )

Definition at line 27 of file CustomTest.php.

27 : Closure
28 {
29 return $this->getLngClosure();
30 }
getLngClosure()
Get the closure to be passed to the error-function that does i18n and sprintf.

References ILIAS\Refinery\getLngClosure().

+ Here is the call graph for this function:

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