23 $this->sectionDM = $sectionDM;
32 ->
setId($this->getId())
33 ->setName($this->getName())
34 ->setColor($this->getColor())
35 ->setGoogleId($this->getGoogleId())
36 ->setSyncToken($this->getSyncToken())
37 ->setPageToken($this->getPageToken())
38 ->setCalDavConnectionId($this->getCalDavConnectionId())
39 ->setDescription($this->getDescription())
40 ->setExternalType($this->getExternalType())
41 ->setType($this->getType())
42 ->setIsActive($this->getIsActive())
43 ->setXmlId($this->getXmlId())
44 ->setOwner($this->getOwner())
45 ->setCreator($this->getCreator())
52 private function getId(): int
54 return $this->sectionDM->getId();
60 private function getGoogleId(): ?string
62 return $this->sectionDM->getGapiCalendarId();
68 private function getSyncToken(): ?string
70 return $this->sectionDM->getSyncToken();
76 private function getPageToken(): ?string
78 return $this->sectionDM->getPageToken();
84 private function getCalDavConnectionId(): ?int
86 return (
int)$this->sectionDM->getCalDavCon() ?:
null;
92 private function getDescription(): ?string
94 return $this->sectionDM->getDescription();
100 private function getName(): ?string
102 return $this->sectionDM->getName();
108 private function getColor(): string
110 return $this->sectionDM->getColor();
116 private function getExternalType(): string
118 return $this->sectionDM->getExternalType();
124 private function getIsActive(): bool
126 return $this->sectionDM->getActive();
132 private function getType(): string
134 return $this->sectionDM->getCalType();
140 private function getXmlId(): string
142 return $this->sectionDM->getXmlId();
150 private function getOwner(): ?Role
152 if ($id = $this->sectionDM->getOwnerId())
156 return Helper::getUserRole($id);
158 catch (BaseException $e)
172 private function getCreator(): ?Role
174 if ($id = ($this->sectionDM->getCreatedBy() ?? $this->sectionDM->getOwnerId()))
178 return Helper::getUserRole($id);
180 catch (BaseException $e)