ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Data\Password\HasSpecialChars Class Reference
+ Inheritance diagram for ILIAS\Data\Password\HasSpecialChars:
+ Collaboration diagram for ILIAS\Data\Password\HasSpecialChars:

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...
 

Private Attributes

const ALLOWED_CHARS = '/[,_.\-#\+\*?!%§\(\)\$]/u'
 

Detailed Description

Definition at line 26 of file HasSpecialChars.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\Password\HasSpecialChars::__construct ( Data\Factory  $data_factory,
\ILIAS\Language\Language  $lng 
)

Definition at line 30 of file HasSpecialChars.php.

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

31  {
33  static function (Data\Password $value): bool {
34  return (bool) preg_match(self::ALLOWED_CHARS, $value->toString());
35  },
36  static function ($value): string {
37  return "Password must contain special chars.";
38  },
39  $data_factory,
40  $lng
41  );
42  }
__construct(Container $dic, ilPlugin $plugin)
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:

Field Documentation

◆ ALLOWED_CHARS

const ILIAS\Data\Password\HasSpecialChars::ALLOWED_CHARS = '/[,_.\-#\+\*?!%§\(\)\$]/u'
private

Definition at line 28 of file HasSpecialChars.php.


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