ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
}
Sabre\VObject\Property\UtcOffset\setJsonValue
setJsonValue(array $value)
Sets the JSON value, as it would appear in a jCard or jCal object.
Definition:
UtcOffset.php:47
Sabre\VObject\Property
Definition:
Binary.php:3
Sabre\VObject\Property\UtcOffset
UtcOffset property.
Definition:
UtcOffset.php:14
Sabre\VObject\Property\Text
Text property.
Definition:
Text.php:20
php
Sabre\VObject\Property\UtcOffset\getJsonValue
getJsonValue()
Returns the value, in the format it should be encoded for JSON.
Definition:
UtcOffset.php:66
Sabre\VObject\Property\$value
$value
Definition:
Property.php:49
Sabre\VObject\Property\UtcOffset\$delimiter
$delimiter
Definition:
UtcOffset.php:22
Sabre\VObject\Property\UtcOffset\getValueType
getValueType()
Returns the type of value.
Definition:
UtcOffset.php:32
libs
composer
vendor
sabre
vobject
lib
Property
UtcOffset.php
Generated on Thu Jan 30 2025 19:01:30 for ILIAS by
1.8.13 (using
Doxyfile
)