PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.7 2.4.6 2.4.5 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 / Property / UtcOffset.php
ameliabooking / vendor / sabre / vobject / lib / Property Last commit date
ICalendar 7 months ago VCard 7 months ago Binary.php 7 months ago Boolean.php 7 months ago FlatText.php 7 months ago FloatValue.php 7 months ago IntegerValue.php 7 months ago Text.php 7 months ago Time.php 7 months ago Unknown.php 7 months ago Uri.php 7 months ago UtcOffset.php 7 months ago
UtcOffset.php
71 lines
1 <?php
2
3 namespace AmeliaVendor\Sabre\VObject\Property;
4
5 /**
6 * UtcOffset property.
7 *
8 * This object encodes UTC-OFFSET values.
9 *
10 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
11 * @author Evert Pot (http://evertpot.com/)
12 * @license http://sabre.io/license/ Modified BSD License
13 */
14 class UtcOffset extends Text
15 {
16 /**
17 * In case this is a multi-value property. This string will be used as a
18 * delimiter.
19 *
20 * @var string
21 */
22 public $delimiter = '';
23
24 /**
25 * Returns the type of value.
26 *
27 * This corresponds to the VALUE= parameter. Every property also has a
28 * 'default' valueType.
29 *
30 * @return string
31 */
32 public function getValueType()
33 {
34 return 'UTC-OFFSET';
35 }
36
37 /**
38 * Sets the JSON value, as it would appear in a jCard or jCal object.
39 *
40 * The value must always be an array.
41 */
42 public function setJsonValue(array $value)
43 {
44 $value = array_map(
45 function ($value) {
46 return str_replace(':', '', $value);
47 },
48 $value
49 );
50 parent::setJsonValue($value);
51 }
52
53 /**
54 * Returns the value, in the format it should be encoded for JSON.
55 *
56 * This method must always return an array.
57 *
58 * @return array
59 */
60 public function getJsonValue()
61 {
62 return array_map(
63 function ($value) {
64 return substr($value, 0, -2).':'.
65 substr($value, -2);
66 },
67 parent::getJsonValue()
68 );
69 }
70 }
71