Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sharingtrait.php
1
<?php
2
3
namespace
Bitrix\Calendar\Access\Rule\Traits
;
4
5
use
Bitrix\Calendar\Sharing\Link\EventLink
;
6
use
Bitrix\Calendar\Sharing\Link\Factory
;
7
8
trait SharingTrait
9
{
10
private
function
isEventLinkOwner(
int
$eventId,
int
$userId): bool
11
{
12
$result =
false
;
14
$eventLink =
Factory::getInstance
()->getEventLinkByEventId($eventId);
15
if
($eventLink)
16
{
17
$result = $eventLink->getOwnerId() ===
$userId
;
18
}
19
20
return
$result;
21
}
22
}
Bitrix\Calendar\Core\Mappers\Factory
Definition
factory.php:6
Bitrix\Calendar\Sharing\Link\EventLink
Definition
eventlink.php:5
Bitrix\Calendar\Sharing\Link\Factory\getInstance
static getInstance()
Definition
factory.php:19
Bitrix\Calendar\Access\Rule\Traits
Definition
currentusertrait.php:3
Bitrix\Catalog\Document\Action\Barcode\$userId
$userId
Definition
basestorebarcodeaction.php:30
modules
calendar
lib
access
rule
traits
sharingtrait.php
Создано системой
1.10.0