ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 
12 
16 class Group
17 {
21  protected $data_factory;
22 
26  protected $lng;
27 
29  {
30  $this->data_factory = $data_factory;
31  $this->lng = $lng;
32  }
33 
40  public function hasMinLength($min_length)
41  {
42  return new HasMinLength($min_length, $this->data_factory, $this->lng);
43  }
44 
50  public function hasUpperChars()
51  {
52  return new HasUpperChars($this->data_factory, $this->lng);
53  }
54 
60  public function hasLowerChars()
61  {
62  return new HasLowerChars($this->data_factory, $this->lng);
63  }
64 
70  public function hasNumbers()
71  {
72  return new HasNumbers($this->data_factory, $this->lng);
73  }
74 
80  public function hasSpecialChars()
81  {
82  return new HasSpecialChars($this->data_factory, $this->lng);
83  }
84 }
__construct(Factory $data_factory, \ilLanguage $lng)
Definition: Group.php:28
hasSpecialChars()
Get the constraint that a password has special chars.
Definition: Group.php:80
hasUpperChars()
Get the constraint that a password has upper case chars.
Definition: Group.php:50
hasNumbers()
Get the constraint that a password has numbers.
Definition: Group.php:70
hasLowerChars()
Get the constraint that a password has lower case chars.
Definition: Group.php:60
Builds data types.
Definition: Factory.php:19
hasMinLength($min_length)
Get the constraint that a password has a minimum length.
Definition: Group.php:40