1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
baserole.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Role;
4
5
use Bitrix\Calendar\Core\Base\BaseProperty;
6
7
abstract
class
BaseRole
extends
BaseProperty
implements
RoleEntityInterface
8
{
9
public
const
TYPE
=
'user'
;
10
protected
string
$name
=
''
;
11
protected
?
int
$id
=
null
;
12
13
public
static
function
createInstance
(
string
$name
):
RoleEntityInterface
14
{
15
return
new
static
(
$name
);
16
}
17
18
public
function
__construct
(
string
$name
)
19
{
20
$this->name =
$name
;
21
}
22
26
public
function
toString
(): string
27
{
28
return
$this->
getFullName
();
29
}
30
34
public
function
getFields
():
array
35
{
36
return
[
37
'name'
,
38
'id'
,
39
];
40
}
41
45
public
function
getFullName
(): string
46
{
47
return
$this->name
;
48
}
49
53
public
function
getId
(): ?int
54
{
55
return
$this->id
;
56
}
57
61
public
function
getType
(): string
62
{
63
return
static::TYPE;
64
}
65
70
public
function
setName
(
string
$name
):
BaseRole
71
{
72
$this->name =
$name
;
73
74
return
$this;
75
}
76
81
public
function
setId
(?
int
$id
):
BaseRole
82
{
83
$this->
id
= $id;
84
85
return
$this;
86
}
87
}
Bitrix\Calendar\Core\Base\BaseProperty
Определения
baseproperty.php:6
Bitrix\Calendar\Core\Role\BaseRole
Определения
baserole.php:8
Bitrix\Calendar\Core\Role\BaseRole\setId
setId(?int $id)
Определения
baserole.php:81
Bitrix\Calendar\Core\Role\BaseRole\getId
getId()
Определения
baserole.php:53
Bitrix\Calendar\Core\Role\BaseRole\__construct
__construct(string $name)
Определения
baserole.php:18
Bitrix\Calendar\Core\Role\BaseRole\createInstance
static createInstance(string $name)
Определения
baserole.php:13
Bitrix\Calendar\Core\Role\BaseRole\getFullName
getFullName()
Определения
baserole.php:45
Bitrix\Calendar\Core\Role\BaseRole\$id
int $id
Определения
baserole.php:11
Bitrix\Calendar\Core\Role\BaseRole\setName
setName(string $name)
Определения
baserole.php:70
Bitrix\Calendar\Core\Role\BaseRole\toString
toString()
Определения
baserole.php:26
Bitrix\Calendar\Core\Role\BaseRole\$name
string $name
Определения
baserole.php:10
Bitrix\Calendar\Core\Role\BaseRole\getType
getType()
Определения
baserole.php:61
Bitrix\Calendar\Core\Role\BaseRole\TYPE
const TYPE
Определения
baserole.php:9
Bitrix\Calendar\Core\Role\BaseRole\getFields
getFields()
Определения
baserole.php:34
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Calendar\Core\Role\RoleEntityInterface
Определения
roleentityinterface.php:6
bitrix
modules
calendar
lib
core
role
baserole.php
Создано системой
1.14.0