ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
UtcOffset.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\VObject\Property;
4 
14 class UtcOffset extends Text {
15 
22  public $delimiter = null;
23 
32  function getValueType() {
33 
34  return 'UTC-OFFSET';
35 
36  }
37 
47  function setJsonValue(array $value) {
48 
49  $value = array_map(
50  function($value) {
51  return str_replace(':', '', $value);
52  },
53  $value
54  );
55  parent::setJsonValue($value);
56 
57  }
58 
66  function getJsonValue() {
67 
68  return array_map(
69  function($value) {
70  return substr($value, 0, -2) . ':' .
71  substr($value, -2);
72  },
73  parent::getJsonValue()
74  );
75 
76  }
77 }
setJsonValue(array $value)
Sets the JSON value, as it would appear in a jCard or jCal object.
Definition: UtcOffset.php:47
UtcOffset property.
Definition: UtcOffset.php:14
Text property.
Definition: Text.php:20
getJsonValue()
Returns the value, in the format it should be encoded for JSON.
Definition: UtcOffset.php:66
getValueType()
Returns the type of value.
Definition: UtcOffset.php:32