PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / sabre / vobject / lib / Component / VTimeZone.php
ameliabooking / vendor / sabre / vobject / lib / Component Last commit date
Available.php 6 months ago VAlarm.php 6 months ago VAvailability.php 6 months ago VCalendar.php 6 months ago VCard.php 6 months ago VEvent.php 6 months ago VFreeBusy.php 6 months ago VJournal.php 6 months ago VTimeZone.php 6 months ago VTodo.php 6 months ago
VTimeZone.php
64 lines
1 <?php
2
3 namespace AmeliaVendor\Sabre\VObject\Component;
4
5 use AmeliaVendor\Sabre\VObject;
6
7 /**
8 * The VTimeZone component.
9 *
10 * This component adds functionality to a component, specific for VTIMEZONE
11 * components.
12 *
13 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
14 * @author Evert Pot (http://evertpot.com/)
15 * @license http://sabre.io/license/ Modified BSD License
16 */
17 class VTimeZone extends VObject\Component
18 {
19 /**
20 * Returns the PHP DateTimeZone for this VTIMEZONE component.
21 *
22 * If we can't accurately determine the timezone, this method will return
23 * UTC.
24 *
25 * @return \DateTimeZone
26 */
27 public function getTimeZone()
28 {
29 return VObject\TimeZoneUtil::getTimeZone((string) $this->TZID, $this->root);
30 }
31
32 /**
33 * A simple list of validation rules.
34 *
35 * This is simply a list of properties, and how many times they either
36 * must or must not appear.
37 *
38 * Possible values per property:
39 * * 0 - Must not appear.
40 * * 1 - Must appear exactly once.
41 * * + - Must appear at least once.
42 * * * - Can appear any number of times.
43 * * ? - May appear, but not more than once.
44 *
45 * @var array
46 */
47 public function getValidationRules()
48 {
49 return [
50 'TZID' => 1,
51
52 'LAST-MODIFIED' => '?',
53 'TZURL' => '?',
54
55 // At least 1 STANDARD or DAYLIGHT must appear.
56 //
57 // The validator is not specific yet to pick this up, so these
58 // rules are too loose.
59 'STANDARD' => '*',
60 'DAYLIGHT' => '*',
61 ];
62 }
63 }
64