Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/calendar/lib/sharing/link/ |
Upload File : |
<?php namespace Bitrix\Calendar\Sharing\Link; use Bitrix\Calendar\Sharing\Link\Joint\JointLink; class UserLink extends JointLink { private int $slotSize = 60; protected ?Rule\Rule $sharingRule = null; public function getObjectType(): string { return Helper::USER_SHARING_TYPE; } public function getSlotSize(): int { return $this->slotSize; } public function getUserId(): int { return $this->getObjectId(); } public function setSlotSize(int $minutes): static { $this->slotSize = $minutes; return $this; } public function setUserId(int $id): static { return $this->setObjectId($id); } public function getSharingRule(): ?Rule\Rule { return $this->sharingRule; } public function setSharingRule(?Rule\Rule $sharingRule): self { $this->sharingRule = $sharingRule; return $this; } public function getOwnerId(): int { return $this->getObjectId(); } }