ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
HasMinLength.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2018 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\Refinery\Password
;
5
6
use
ILIAS\Refinery\Custom\Constraint
as
CustomConstraint
;
7
use
ILIAS\Refinery\Constraint
;
8
use
ILIAS\Data
;
9
10
class
HasMinLength
extends
CustomConstraint
implements
Constraint
11
{
15
protected
$min_length
;
16
17
public
function
__construct
(
int
$min_length
, Data\
Factory
$data_factory
, \
ilLanguage
$lng
)
18
{
19
$this->min_length =
$min_length
;
20
parent::__construct
(
21
function
(Data\
Password
$value) {
22
return
strlen($value->toString()) >= $this->min_length;
23
},
24
function
($value) {
25
return
"Password has a length less than '{$this->min_length}'."
;
26
},
27
$data_factory
,
28
$lng
29
);
30
}
31
}
ILIAS\Refinery\Custom\Constraint\$data_factory
$data_factory
Definition:
Constraint.php:20
ILIAS\Refinery\Password\HasMinLength\__construct
__construct(int $min_length, Data\Factory $data_factory, \ilLanguage $lng)
Definition:
HasMinLength.php:17
ILIAS\Refinery\Password\HasMinLength\$min_length
$min_length
Definition:
HasMinLength.php:15
ILIAS\Refinery\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:14
ILIAS\Data\Password
A password is used as part of credentials for authentication.
Definition:
Password.php:13
Constraint
ILIAS\Refinery\Custom\Constraint\$lng
$lng
Definition:
Constraint.php:25
ILIAS\Refinery\Password
Definition:
Group.php:4
ILIAS\Refinery\Password\HasMinLength
Definition:
HasMinLength.php:10
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:30
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
Constraint
ILIAS\Data
Definition:
Alphanumeric.php:10
src
Refinery
Password
HasMinLength.php
Generated on Wed Apr 9 2025 20:01:38 for ILIAS by
1.8.13 (using
Doxyfile
)