ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
VTimeZone.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Sabre\VObject;
6 
18 
27  function getTimeZone() {
28 
29  return VObject\TimeZoneUtil::getTimeZone((string)$this->TZID, $this->root);
30 
31  }
32 
48  function getValidationRules() {
49 
50  return [
51  'TZID' => 1,
52 
53  'LAST-MODIFIED' => '?',
54  'TZURL' => '?',
55 
56  // At least 1 STANDARD or DAYLIGHT must appear.
57  //
58  // The validator is not specific yet to pick this up, so these
59  // rules are too loose.
60  'STANDARD' => '*',
61  'DAYLIGHT' => '*',
62  ];
63 
64  }
65 
66 }
static static getTimeZone($tzid, Component $vcalendar=null, $failIfUncertain=false)
This method will try to find out the correct timezone for an iCalendar date-time value.
The VTimeZone component.
Definition: VTimeZone.php:17
getTimeZone()
Returns the PHP DateTimeZone for this VTIMEZONE component.
Definition: VTimeZone.php:27