ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
UserIdentfiers.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23enum UserIdentifiers: string
24{
25 case USER_ID = 'usr_id';
26 case LOGIN = 'login';
27 case EMAIL = 'email';
28 case MATRICULATION = 'matriculation';
29 case EXTERNAL_ACCOUNT = 'ext_account';
30
31 public function getColumnType(): string
32 {
33 return match ($this) {
34 self::USER_ID => \ilDBConstants::T_INTEGER,
35 self::LOGIN => \ilDBConstants::T_TEXT,
36 self::EMAIL => \ilDBConstants::T_TEXT,
37 self::MATRICULATION => \ilDBConstants::T_TEXT,
38 self::EXTERNAL_ACCOUNT => \ilDBConstants::T_TEXT,
39 };
40 }