ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
HasSpecialChars.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Refinery\Password
;
22
23
use
ILIAS\Refinery\Custom\Constraint
;
24
use
ILIAS\Data
;
25
26
class
HasSpecialChars
extends
Constraint
27
{
28
private
const
ALLOWED_CHARS
=
'/[,_.\-#\+\*?!%ยง\(\)\$]/u'
;
29
30
public
function
__construct
(
Data
\
Factory
$data_factory, \
ILIAS
\
Language
\
Language
$lng
)
31
{
32
parent::__construct
(
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
}
43
}
Data
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
ILIAS\Data\Password\HasSpecialChars\__construct
__construct(Data\Factory $data_factory, \ILIAS\Language\Language $lng)
Definition:
HasSpecialChars.php:30
ILIAS\Data\Password
A password is used as part of credentials for authentication.
Definition:
Password.php:30
Constraint
ILIAS\Refinery\Password
Definition:
Group.php:21
ILIAS\Data\Password\HasSpecialChars\ALLOWED_CHARS
const ALLOWED_CHARS
Definition:
HasSpecialChars.php:28
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:35
ILIAS\Language
Definition:
Language.php:23
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
$lng
global $lng
Definition:
privfeed.php:31
ILIAS\Data\Password\HasSpecialChars
Definition:
HasSpecialChars.php:26
ILIAS\Data
Definition:
Alphanumeric.php:24
components
ILIAS
Refinery
src
Password
HasSpecialChars.php
Generated on Sun Aug 31 2025 23:03:32 for ILIAS by
1.8.13 (using
Doxyfile
)