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/ical/parser/ |
Upload File : |
<?php namespace Bitrix\Calendar\ICal\Parser; class Timezone extends ParserComponent { /** * @var ParserPropertyType|null */ private $tzid; /** * @var ParserPropertyType|null */ private $tzurl; /** * @var array */ private $standard; /** * @var array */ private $daylight; /** * @return Timezone */ public static function createInstance(): Timezone { return new self(); } /** * Timezone constructor. */ public function __construct() { } /** * @return string */ public function getType(): string { return 'VTIMEZONE'; } /** * @return string[] */ public function getProperties(): array { return [ 'TZID', 'TZURL' ]; } /** * @param ParserPropertyType|null $tzid * @return $this */ public function setTimezoneId(?ParserPropertyType $tzid): Timezone { $this->tzid = $tzid; return $this; } /** * @param ParserPropertyType|null $url * @return $this */ public function setTimezoneUrl(?ParserPropertyType $url): Timezone { $this->tzurl = $url; return $this; } /** * @param array $subComponents * @return $this */ public function setSubComponents(iterable $subComponents): Timezone { foreach ($subComponents as $subComponent) { if ($subComponent instanceof Observance) { if ($subComponent instanceof StandardObservance) { $this->standard[] = $subComponent; } elseif($subComponent instanceof DaylightObservance) { $this->daylight[] = $subComponent; } } } return $this; } /** * */ public function getContent(): void { // TODO: Implement getContent() method. } /** * @return ParserPropertyType|null */ public function getTzUrl(): ?ParserPropertyType { return $this->tzurl; } /** * @return ParserPropertyType|null */ public function getTzId(): ?ParserPropertyType { return $this->tzid; } }