Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
userlink.php
1
<?php
2
namespace
Bitrix\Calendar\Sharing\Link
;
3
4
use
Bitrix\Calendar\Sharing\Link\Joint\JointLink
;
5
6
class
UserLink
extends
JointLink
7
{
8
private
int
$slotSize = 60;
9
protected
?
Rule\Rule
$sharingRule
=
null
;
10
11
public
function
getObjectType
(): string
12
{
13
return
Helper::USER_SHARING_TYPE
;
14
}
15
16
public
function
getSlotSize
(): int
17
{
18
return
$this->slotSize;
19
}
20
21
public
function
getUserId
(): int
22
{
23
return
$this->
getObjectId
();
24
}
25
26
public
function
setSlotSize
(
int
$minutes): static
27
{
28
$this->slotSize = $minutes;
29
30
return
$this;
31
}
32
33
public
function
setUserId
(
int
$id
): static
34
{
35
return
$this->
setObjectId
($id);
36
}
37
38
public
function
getSharingRule
(): ?Rule\Rule
39
{
40
return
$this->sharingRule
;
41
}
42
43
public
function
setSharingRule
(?Rule\Rule
$sharingRule
): self
44
{
45
$this->sharingRule =
$sharingRule
;
46
47
return
$this;
48
}
49
50
public
function
getOwnerId
(): int
51
{
52
return
$this->
getObjectId
();
53
}
54
}
Bitrix\Calendar\Sharing\Link\Helper\USER_SHARING_TYPE
const USER_SHARING_TYPE
Definition
helper.php:7
Bitrix\Calendar\Sharing\Link\Joint\JointLink
Definition
jointlink.php:9
Bitrix\Calendar\Sharing\Link\Link\setObjectId
setObjectId(int $objectId)
Definition
link.php:50
Bitrix\Calendar\Sharing\Link\Link\getObjectId
getObjectId()
Definition
link.php:41
Bitrix\Calendar\Sharing\Link\Link\$id
int $id
Definition
link.php:11
Bitrix\Calendar\Sharing\Link\Rule\Rule
Definition
rule.php:6
Bitrix\Calendar\Sharing\Link\UserLink
Definition
userlink.php:7
Bitrix\Calendar\Sharing\Link\UserLink\getUserId
getUserId()
Definition
userlink.php:21
Bitrix\Calendar\Sharing\Link\UserLink\setUserId
setUserId(int $id)
Definition
userlink.php:33
Bitrix\Calendar\Sharing\Link\UserLink\getSharingRule
getSharingRule()
Definition
userlink.php:38
Bitrix\Calendar\Sharing\Link\UserLink\$sharingRule
Rule Rule $sharingRule
Definition
userlink.php:9
Bitrix\Calendar\Sharing\Link\UserLink\getSlotSize
getSlotSize()
Definition
userlink.php:16
Bitrix\Calendar\Sharing\Link\UserLink\setSharingRule
setSharingRule(?Rule\Rule $sharingRule)
Definition
userlink.php:43
Bitrix\Calendar\Sharing\Link\UserLink\getOwnerId
getOwnerId()
Definition
userlink.php:50
Bitrix\Calendar\Sharing\Link\UserLink\setSlotSize
setSlotSize(int $minutes)
Definition
userlink.php:26
Bitrix\Calendar\Sharing\Link\UserLink\getObjectType
getObjectType()
Definition
userlink.php:11
Bitrix\Calendar\Sharing\Link
Definition
crmdeallink.php:3
modules
calendar
lib
sharing
link
userlink.php
Создано системой
1.10.0