Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
user.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Role
;
4
5
use
Bitrix\Calendar\Core\Base\BaseException
;
6
7
class
User
extends
BaseRole
8
{
9
public
const
TYPE
=
'user'
;
10
14
public
static
array
$users
= [];
18
protected
string
$name
;
22
protected
?
int
$id
=
null
;
26
protected
?
string
$lastName
=
null
;
30
protected
?
string
$languageId
=
null
;
32
protected
?
string
$email
=
null
;
33
37
public
function
getFields
(): array
38
{
39
return
[
40
'name'
=>
$this->name
,
41
'lastName'
=>
$this->lastName
,
42
];
43
}
44
48
public
function
toString
(): string
49
{
50
return
$this->name
;
51
}
52
56
public
function
getName
(): string
57
{
58
return
$this->name
;
59
}
60
65
public
function
setLastName
(
string
$lastName
=
null
): self
66
{
67
$this->lastName =
$lastName
;
68
69
return
$this;
70
}
71
75
public
function
getLastName
(): ?string
76
{
77
return
$this->lastName
;
78
}
79
83
public
function
getFullName
(): string
84
{
85
return
$this->
getName
() .
' '
. $this->
getLastName
();
86
}
87
91
public
function
getLanguageId
(): ?string
92
{
93
return
$this->languageId
;
94
}
95
100
public
function
setLanguageId
(
string
$languageId
):
User
101
{
102
$this->languageId =
$languageId
;
103
104
return
$this;
105
}
106
111
public
function
setEmail
(?
string
$email
):
User
112
{
113
$this->email =
$email
;
114
115
return
$this;
116
}
117
}
Bitrix\Calendar\Core\Base\BaseException
Definition
baseexception.php:8
Bitrix\Calendar\Core\Role\BaseRole
Definition
baserole.php:8
Bitrix\Calendar\Core\Role\User
Definition
user.php:8
Bitrix\Calendar\Core\Role\User\$lastName
string $lastName
Definition
user.php:26
Bitrix\Calendar\Core\Role\User\getFullName
getFullName()
Definition
user.php:83
Bitrix\Calendar\Core\Role\User\$id
int $id
Definition
user.php:22
Bitrix\Calendar\Core\Role\User\getName
getName()
Definition
user.php:56
Bitrix\Calendar\Core\Role\User\toString
toString()
Definition
user.php:48
Bitrix\Calendar\Core\Role\User\$name
string $name
Definition
user.php:18
Bitrix\Calendar\Core\Role\User\getLastName
getLastName()
Definition
user.php:75
Bitrix\Calendar\Core\Role\User\TYPE
const TYPE
Definition
user.php:9
Bitrix\Calendar\Core\Role\User\setEmail
setEmail(?string $email)
Definition
user.php:111
Bitrix\Calendar\Core\Role\User\setLanguageId
setLanguageId(string $languageId)
Definition
user.php:100
Bitrix\Calendar\Core\Role\User\$languageId
string $languageId
Definition
user.php:30
Bitrix\Calendar\Core\Role\User\$email
string $email
Definition
user.php:32
Bitrix\Calendar\Core\Role\User\getLanguageId
getLanguageId()
Definition
user.php:91
Bitrix\Calendar\Core\Role\User\$users
static array $users
Definition
user.php:14
Bitrix\Calendar\Core\Role\User\setLastName
setLastName(string $lastName=null)
Definition
user.php:65
Bitrix\Calendar\Core\Role\User\getFields
getFields()
Definition
user.php:37
Bitrix\Calendar\Core\Role
Definition
attendee.php:3
modules
calendar
lib
core
role
user.php
Создано системой
1.10.0