ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
$a_value = (bool) $a_value;
29
}
30
$this->value = $a_value;
31
}
32
33
public
function
getStatus
()
34
{
35
return
$this->value
;
36
}
37
38
39
// comparison
40
41
public
function
equals
(
ilADT
$a_adt)
42
{
43
if
($this->isComparableTo($a_adt)) {
44
return
($this->
getStatus
() === $a_adt->getStatus());
45
}
46
}
47
48
public
function
isLarger
(
ilADT
$a_adt)
49
{
50
// return null?
51
}
52
53
public
function
isSmaller
(
ilADT
$a_adt)
54
{
55
// return null?
56
}
57
58
59
// null
60
61
public
function
isNull
()
62
{
63
return
($this->
getStatus
() === null);
64
}
65
66
67
// validation
68
69
public
function
isValid
()
70
{
71
return
true
;
72
}
73
74
75
// check
76
77
public
function
getCheckSum
()
78
{
79
if
(!$this->
isNull
()) {
80
return
(
string
) $this->
getStatus
();
81
}
82
}
83
}
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:53
ilADTBoolean\isLarger
isLarger(ilADT $a_adt)
Definition:
class.ilADTBoolean.php:48
ilADTBoolean\getStatus
getStatus()
Definition:
class.ilADTBoolean.php:33
ilADTBoolean\getCheckSum
getCheckSum()
Definition:
class.ilADTBoolean.php:77
ilADTBoolean\isNull
isNull()
Definition:
class.ilADTBoolean.php:61
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTBoolean\isValid
isValid()
Definition:
class.ilADTBoolean.php:69
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:41
ilADTBoolean
Definition:
class.ilADTBoolean.php:3
ilADTDefinition
ADT definition base class.
Definition:
class.ilADTDefinition.php:11
Services
ADT
classes
Types
Boolean
class.ilADTBoolean.php
Generated on Tue Jan 28 2025 19:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)