From 6b796258d413f00e498ce7f80f73a9f6c061f29c Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 30 Mar 2024 23:40:33 +0100 Subject: Updated 5 files, added 2 files, deleted 495 files and renamed 7 files (automated) --- .../vendor/om/icalparser/src/Recurrence.php | 234 --------------------- 1 file changed, 234 deletions(-) delete mode 100644 includes/composer/vendor/om/icalparser/src/Recurrence.php (limited to 'includes/composer/vendor/om/icalparser/src/Recurrence.php') diff --git a/includes/composer/vendor/om/icalparser/src/Recurrence.php b/includes/composer/vendor/om/icalparser/src/Recurrence.php deleted file mode 100644 index 7010257..0000000 --- a/includes/composer/vendor/om/icalparser/src/Recurrence.php +++ /dev/null @@ -1,234 +0,0 @@ -parseRrule($rrule); - } - - /** - * Parses an 'RRULE' array and sets the member variables of this object. - * Expects a string that looks like this: 'FREQ=WEEKLY;INTERVAL=2;BYDAY=SU,TU,WE' - * - * @param array $rrule - */ - protected function parseRrule(array $rrule): void { - $this->rrule = $rrule; - //loop through the properties in the line and set their associated - //member variables - foreach ($this->rrule as $propertyName => $propertyValue) { - //need the lower-case name for setting the member variable - $propertyName = strtolower($propertyName); - //split up the list of values into an array (if it's a list) - if (in_array($propertyName, $this->listProperties, true)) { - $propertyValue = explode(',', $propertyValue); - } - $this->$propertyName = $propertyValue; - } - } - - /** - * Returns the frequency - corresponds to FREQ in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getFreq(): mixed { - return $this->getMember('freq'); - } - - /** - * Retrieves the desired member variable and returns it (if it's set) - * - * @param string $member name of the member variable - * @return mixed the variable value (if set), false otherwise - */ - protected function getMember(string $member): mixed { - return $this->$member ?? false; - } - - /** - * Returns when the event will go until - corresponds to UNTIL in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getUntil(): mixed { - return $this->getMember('until'); - } - - /** - * Set the $until member - * - * @param mixed $ts timestamp (int) / Valid DateTime format (string) - * @throws Exception - */ - public function setUntil(mixed $ts): void { - if ($ts instanceof DateTime) { - $dt = $ts; - } elseif (is_int($ts)) { - $dt = new DateTime('@' . $ts); - } else { - $dt = new DateTime($ts); - } - $this->until = $dt->format('Ymd\THisO'); - $this->rrule['until'] = $this->until; - } - - /** - * Returns the count of the times the event will occur (should only appear if 'until' - * does not appear) - corresponds to COUNT in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getCount(): mixed { - return $this->getMember('count'); - } - - /** - * Returns the interval - corresponds to INTERVAL in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getInterval(): mixed { - return $this->getMember('interval'); - } - - /** - * Returns the bysecond part of the event - corresponds to BYSECOND in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getBySecond(): mixed { - return $this->getMember('bysecond'); - } - - /** - * Returns the byminute information for the event - corresponds to BYMINUTE in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getByMinute(): mixed { - return $this->getMember('byminute'); - } - - /** - * Corresponds to BYHOUR in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getByHour(): mixed { - return $this->getMember('byhour'); - } - - /** - *Corresponds to BYDAY in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getByDay(): mixed { - return $this->getMember('byday'); - } - - /** - * Corresponds to BYMONTHDAY in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getByMonthDay(): mixed { - return $this->getMember('bymonthday'); - } - - /** - * Corresponds to BYYEARDAY in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getByYearDay(): mixed { - return $this->getMember('byyearday'); - } - - /** - * Corresponds to BYWEEKNO in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getByWeekNo(): mixed { - return $this->getMember('byweekno'); - } - - /** - * Corresponds to BYMONTH in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getByMonth(): mixed { - return $this->getMember('bymonth'); - } - - /** - * Corresponds to BYSETPOS in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getBySetPos(): mixed { - return $this->getMember('bysetpos'); - } - - /** - * Corresponds to WKST in RFC 2445. - * - * @return mixed string if the member has been set, false otherwise - */ - public function getWkst(): mixed { - return $this->getMember('wkst'); - } -} -- cgit