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; final class GroupLink extends JointLink { private ?int $hostId = null; private int $slotSize = 60; protected ?Rule\Rule $sharingRule = null; public function getOwnerId(): int { return $this->getObjectId(); } public function setGroupId(int $id): static { $this->setObjectId($id); return $this; } public function getGroupId(): int { return $this->getObjectId(); } public function setHostId(int $hostId): self { $this->hostId = $hostId; return $this; } public function getHostId(): ?int { return $this->hostId ?? null; } public function getObjectType(): string { return Helper::GROUP_SHARING_TYPE; } public function getSharingRule(): ?Rule\Rule { return $this->sharingRule; } public function setSharingRule(?Rule\Rule $sharingRule): self { $this->sharingRule = $sharingRule; return $this; } public function getSlotSize(): int { return $this->slotSize; } public function setSlotSize(int $minutes): static { $this->slotSize = $minutes; return $this; } }