ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilADTBoolean.php
Go to the documentation of this file.
1
<?
php
2
3
class
ilADTBoolean
extends
ilADT
4
{
5
protected
$value
;
// [bool]
6
7
8
// definition
9
10
protected
function
isValidDefinition
(
ilADTDefinition
$a_def)
11
{
12
return
($a_def instanceof
ilADTBooleanDefinition
);
13
}
14
15
public
function
reset
()
16
{
17
parent::reset();
18
19
$this->value = null;
20
}
21
22
23
// properties
24
25
public
function
setStatus
($a_value = null)
26
{
27
if
($a_value !== null)
28
{
29
$a_value = (bool)$a_value;
30
}
31
$this->value = $a_value;
32
}
33
34
public
function
getStatus
()
35
{
36
return
$this->value
;
37
}
38
39
40
// comparison
41
42
public
function
equals
(
ilADT
$a_adt)
43
{
44
if
($this->isComparableTo($a_adt))
45
{
46
return
($this->
getStatus
() === $a_adt->getStatus());
47
}
48
}
49
50
public
function
isLarger
(
ilADT
$a_adt)
51
{
52
// return null?
53
}
54
55
public
function
isSmaller
(
ilADT
$a_adt)
56
{
57
// return null?
58
}
59
60
61
// null
62
63
public
function
isNull
()
64
{
65
return
($this->
getStatus
() === null);
66
}
67
68
69
// validation
70
71
public
function
isValid
()
72
{
73
return
true
;
74
}
75
76
77
// check
78
79
public
function
getCheckSum
()
80
{
81
if
(!$this->
isNull
())
82
{
83
return
(
string
)$this->
getStatus
();
84
}
85
}
86
}
87
88
?>
ilADTBoolean\setStatus
setStatus($a_value=null)
Definition:
class.ilADTBoolean.php:25
ilADTBoolean\reset
reset()
Definition:
class.ilADTBoolean.php:15
ilADTBooleanDefinition
Definition:
class.ilADTBooleanDefinition.php:3
ilADTBoolean\isSmaller
isSmaller(ilADT $a_adt)
Definition:
class.ilADTBoolean.php:55
ilADTBoolean\isLarger
isLarger(ilADT $a_adt)
Definition:
class.ilADTBoolean.php:50
ilADTBoolean\getStatus
getStatus()
Definition:
class.ilADTBoolean.php:34
ilADTBoolean\getCheckSum
getCheckSum()
Definition:
class.ilADTBoolean.php:79
ilADTBoolean\isNull
isNull()
Definition:
class.ilADTBoolean.php:63
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTBoolean\isValid
isValid()
Definition:
class.ilADTBoolean.php:71
ilADTBoolean\$value
$value
Definition:
class.ilADTBoolean.php:5
ilADTBoolean\isValidDefinition
isValidDefinition(ilADTDefinition $a_def)
Definition:
class.ilADTBoolean.php:10
ilADTBoolean\equals
equals(ilADT $a_adt)
Definition:
class.ilADTBoolean.php:42
ilADTBoolean
Definition:
class.ilADTBoolean.php:3
php
ilADTDefinition
ADT definition base class.
Definition:
class.ilADTDefinition.php:11
Services
ADT
classes
Types
Boolean
class.ilADTBoolean.php
Generated on Fri Jan 17 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)