ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\User\Profile\ChangeMail Namespace Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

Data Structures

class  DBRepository
 
class  Mail
 
interface  Repository
 
class  Token
 

Enumerations

enum  Status : int { next }
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Enumeration Type Documentation

◆ Status

Author
skergomard
Enumerator
next 

Definition at line 27 of file Status.php.

28{
29 public const VALIDITY_LOGIN = 300;
30
31 case Login = 0;
32 case EmailConfirmation = 1;
33
34 public function next(): self
35 {
36 return match($this) {
37 self::Login => self::EmailConfirmation,
38 default => throw new \Exception('There is no next step')
39 };
40 }
41
42 public function getValidity(\ilSetting $settings): int
43 {
44 return match($this) {
45 self::Login => self::VALIDITY_LOGIN,
46 self::EmailConfirmation => max((int) $settings->get('reg_hash_life_time'), \ilRegistrationSettings::REG_HASH_LIFETIME_MIN_VALUE)
47 };
48 }
49}
ILIAS Setting Class.
get(string $a_keyword, ?string $a_default_value=null)
get setting