ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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 Sat Apr 5 2025 23:03:49 for ILIAS by
1.8.13 (using
Doxyfile
)