ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilADTIntegerDefinition.php
Go to the documentation of this file.
1
<?php
2
3
class
ilADTIntegerDefinition
extends
ilADTDefinition
4
{
5
protected
$min_value
;
// [int]
6
protected
$max_value
;
// [int]
7
protected
$suffix
;
// [string]
8
9
10
// properties
11
12
public
function
handleNumber
($a_value)
13
{
14
if
(!is_numeric($a_value))
15
{
16
$a_value = null;
17
}
18
if
($a_value !== null)
19
{
20
// round?
21
$a_value = (int)$a_value;
22
}
23
return
$a_value;
24
}
25
26
public
function
getMin
()
27
{
28
return
$this->min;
29
}
30
31
public
function
setMin
($a_value)
32
{
33
$this->min = $this->
handleNumber
($a_value);
34
}
35
36
public
function
getMax
()
37
{
38
return
$this->max;
39
}
40
41
public
function
setMax
($a_value)
42
{
43
$this->max = $this->
handleNumber
($a_value);
44
}
45
46
public
function
getSuffix
()
47
{
48
return
$this->suffix
;
49
}
50
51
public
function
setSuffix
($a_value)
52
{
53
$this->suffix = trim($a_value);
54
}
55
56
57
// comparison
58
59
public
function
isComparableTo
(
ilADT
$a_adt)
60
{
61
// has to be number-based
62
return
($a_adt instanceof
ilADTInteger
);
63
}
64
}
65
66
?>
ilADTIntegerDefinition\$max_value
$max_value
Definition:
class.ilADTIntegerDefinition.php:6
ilADTIntegerDefinition\$min_value
$min_value
Definition:
class.ilADTIntegerDefinition.php:5
ilADTIntegerDefinition\setSuffix
setSuffix($a_value)
Definition:
class.ilADTIntegerDefinition.php:51
ilADTIntegerDefinition
Definition:
class.ilADTIntegerDefinition.php:3
ilADTInteger
Definition:
class.ilADTInteger.php:3
ilADTIntegerDefinition\getMax
getMax()
Definition:
class.ilADTIntegerDefinition.php:36
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTIntegerDefinition\getMin
getMin()
Definition:
class.ilADTIntegerDefinition.php:26
ilADTIntegerDefinition\handleNumber
handleNumber($a_value)
Definition:
class.ilADTIntegerDefinition.php:12
ilADTIntegerDefinition\setMin
setMin($a_value)
Definition:
class.ilADTIntegerDefinition.php:31
ilADTIntegerDefinition\$suffix
$suffix
Definition:
class.ilADTIntegerDefinition.php:7
ilADTDefinition
ADT definition base class.
Definition:
class.ilADTDefinition.php:11
ilADTIntegerDefinition\getSuffix
getSuffix()
Definition:
class.ilADTIntegerDefinition.php:46
ilADTIntegerDefinition\setMax
setMax($a_value)
Definition:
class.ilADTIntegerDefinition.php:41
ilADTIntegerDefinition\isComparableTo
isComparableTo(ilADT $a_adt)
Definition:
class.ilADTIntegerDefinition.php:59
Services
ADT
classes
Types
Integer
class.ilADTIntegerDefinition.php
Generated on Mon Apr 7 2025 19:00:46 for ILIAS by
1.8.13 (using
Doxyfile
)