ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilADTIntegerPresentationBridge Class Reference
+ Inheritance diagram for ilADTIntegerPresentationBridge:
+ Collaboration diagram for ilADTIntegerPresentationBridge:

Public Member Functions

 getHTML ()
 
 getSortable ()
 
- Public Member Functions inherited from ilADTPresentationBridge
 __construct (ilADT $a_adt)
 
 getADT ()
 
 getList ()
 
 getHTML ()
 
 getSortable ()
 Get sortable value presentation. More...
 
 setDecoratorCallBack (?array $a_callback)
 Takes as input an array consisting of the object that the method that should be called back to belongs to, and a string with the name of the method. More...
 

Protected Member Functions

 isValidADT (ilADT $a_adt)
 
- Protected Member Functions inherited from ilADTPresentationBridge
 isValidADT (ilADT $a_adt)
 
 setADT (ilADT $a_adt)
 
 decorate ($a_value)
 Decorate value. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilADTPresentationBridge
ilADT $adt
 
 $decorator
 
ilLanguage $lng
 

Detailed Description

Definition at line 21 of file class.ilADTIntegerPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTIntegerPresentationBridge::getHTML ( )

Definition at line 28 of file class.ilADTIntegerPresentationBridge.php.

References ilADTPresentationBridge\decorate(), ilADTPresentationBridge\getADT(), and null.

28  : 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  }
decorate($a_value)
Decorate value.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getSortable()

ilADTIntegerPresentationBridge::getSortable ( )

Definition at line 41 of file class.ilADTIntegerPresentationBridge.php.

References ilADTPresentationBridge\getADT().

42  {
43  if (!$this->getADT()->isNull()) {
44  return $this->getADT()->getNumber();
45  }
46  return 0;
47  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTIntegerPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

Definition at line 23 of file class.ilADTIntegerPresentationBridge.php.

23  : bool
24  {
25  return ($a_adt instanceof ilADTInteger);
26  }

The documentation for this class was generated from the following file: