ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\User\Profile Namespace Reference

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

Namespaces

 ChangeListeners
 
 Prompt
 

Data Structures

class  ChangeMailMail
 
class  ChangeMailToken
 
class  ChangeMailTokenDBRepository
 
interface  ChangeMailTokenRepository
 
class  ChecklistStatus
 
class  DefaultFields
 
class  GUIRequest
 
class  Mode
 Personal profile publishing mode of a user. More...
 
class  VCard
 RFC 2426 vCard MIME Directory Profile 3.0 class. More...
 

Enumerations

enum  ChangeMailStatus : 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

◆ ChangeMailStatus

enum ILIAS::User::Profile::ChangeMailStatus : int
Author
skergomard
Enumerator
next 

Definition at line 27 of file ChangeMailStatus.php.

27  : int
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 }
get(string $a_keyword, ?string $a_default_value=null)
get setting