ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
class.ilADTIntegerPresentationBridge.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilADTIntegerPresentationBridge
extends
ilADTPresentationBridge
22
{
23
protected
function
isValidADT
(
ilADT
$a_adt): bool
24
{
25
return
($a_adt instanceof
ilADTInteger
);
26
}
27
28
public
function
getHTML
(): string
29
{
30
if
(!$this->
getADT
()->isNull()) {
31
$def = $this->
getADT
()->getCopyOfDefinition();
32
$suffix = $def->getSuffix() ?
" "
. $def->getSuffix() :
null
;
33
34
$presentation_value = $this->
getADT
()->getNumber() . $suffix;
35
36
return
$this->
decorate
($presentation_value);
37
}
38
return
''
;
39
}
40
41
public
function
getSortable
()
42
{
43
if
(!$this->
getADT
()->isNull()) {
44
return
$this->
getADT
()->getNumber();
45
}
46
return
0;
47
}
48
}
ilADTPresentationBridge\decorate
decorate($a_value)
Decorate value.
Definition:
class.ilADTPresentationBridge.php:88
ilADTIntegerPresentationBridge\getSortable
getSortable()
Definition:
class.ilADTIntegerPresentationBridge.php:41
ilADTInteger
Definition:
class.ilADTInteger.php:20
ilADTPresentationBridge\getADT
getADT()
Definition:
class.ilADTPresentationBridge.php:54
ilADT
ADT base class.
Definition:
class.ilADT.php:25
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ilADTIntegerPresentationBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTIntegerPresentationBridge.php:23
ilADTPresentationBridge
ADT presentation bridge base class.
Definition:
class.ilADTPresentationBridge.php:26
ilADTIntegerPresentationBridge
Definition:
class.ilADTIntegerPresentationBridge.php:21
ilADTIntegerPresentationBridge\getHTML
getHTML()
Definition:
class.ilADTIntegerPresentationBridge.php:28
components
ILIAS
ADT
classes
Types
Integer
class.ilADTIntegerPresentationBridge.php
Generated on Mon Sep 1 2025 23:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)