ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Boolean.php
Go to the documentation of this file.
1<?php
2
4
5use
7
20class Boolean extends Property {
21
32 function setRawMimeDirValue($val) {
33
34 $val = strtoupper($val) === 'TRUE' ? true : false;
35 $this->setValue($val);
36
37 }
38
44 function getRawMimeDirValue() {
45
46 return $this->value ? 'TRUE' : 'FALSE';
47
48 }
49
58 function getValueType() {
59
60 return 'BOOLEAN';
61
62 }
63
72 function setXmlValue(array $value) {
73
74 $value = array_map(
75 function($value) {
76 return 'true' === $value;
77 },
78 $value
79 );
80 parent::setXmlValue($value);
81
82 }
83
84}
An exception for terminatinating execution or to throw for unit testing.
getRawMimeDirValue()
Returns a raw mime-dir representation of the value.
Definition: Boolean.php:44
setXmlValue(array $value)
Hydrate data from a XML subtree, as it would appear in a xCard or xCal object.
Definition: Boolean.php:72
setRawMimeDirValue($val)
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
Definition: Boolean.php:32
getValueType()
Returns the type of value.
Definition: Boolean.php:58
setValue($value)
Updates the current value.
Definition: Property.php:98