ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
HasUpperChars.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\Validation\Constraints\Password
;
5
6
use
ILIAS\Validation\Constraints
;
7
use
ILIAS\Validation\Constraint
;
8
use
ILIAS\Data
;
9
10
class
HasUpperChars
extends
Constraints\Custom
implements
Constraint
11
{
12
public
function
__construct
(Data\
Factory
$data_factory
, \
ilLanguage
$lng
)
13
{
14
parent::__construct(
15
function
(Data\
Password
$value) {
16
return
(
bool
) preg_match(
'/[A-Z]/'
, $value->toString());
17
},
18
function
($value) {
19
return
"Password must contain upper-case characters."
;
20
},
21
$data_factory
,
22
$lng
23
);
24
}
25
}
ILIAS\Validation\Constraints\Password
Definition:
Factory.php:4
ILIAS\Validation\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:14
ILIAS\Validation\Constraints\Password\HasUpperChars
Definition:
HasUpperChars.php:10
ILIAS\Validation\Constraints\Password\HasUpperChars\__construct
__construct(Data\Factory $data_factory, \ilLanguage $lng)
Definition:
HasUpperChars.php:12
ILIAS\Validation\Constraints\Custom\$lng
$lng
Definition:
Custom.php:20
ILIAS\Data\Password
A password is used as part of credentials for authentication.
Definition:
Password.php:13
Constraint
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:14
ILIAS\Validation\Constraints\Custom
Definition:
Custom.php:10
ILIAS\Validation\Constraints
Definition:
Custom.php:4
ILIAS\Validation\Constraints\Custom\$data_factory
$data_factory
Definition:
Custom.php:15
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
php
ILIAS\Data
Definition:
ClientId.php:4
src
Validation
Constraints
Password
HasUpperChars.php
Generated on Thu Jan 30 2025 19:02:12 for ILIAS by
1.8.13 (using
Doxyfile
)