ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
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)
 Constructor. More...
 
 getADT ()
 Get ADT. More...
 
 getList ()
 Get list presentation. More...
 
 getHTML ()
 Get HTML presentation. More...
 
 getSortable ()
 Get sortable value presentation. More...
 
 setDecoratorCallBack ($a_callback)
 Set decorator callback. More...
 

Protected Member Functions

 isValidADT (ilADT $a_adt)
 
- Protected Member Functions inherited from ilADTPresentationBridge
 isValidADT (ilADT $a_adt)
 Check if given ADT is valid. More...
 
 setADT (ilADT $a_adt)
 Set ADT. More...
 
 decorate ($a_value)
 Decorate value. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilADTPresentationBridge
 $adt
 
 $decorator
 

Detailed Description

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

Member Function Documentation

◆ getHTML()

ilADTIntegerPresentationBridge::getHTML ( )

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

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

13  {
14  if(!$this->getADT()->isNull())
15  {
16  $def = $this->getADT()->getCopyOfDefinition();
17  $suffix = $def->getSuffix() ? " ".$def->getSuffix() : null;
18 
19  $presentation_value = $this->getADT()->getNumber().$suffix;
20 
21  return $this->decorate($presentation_value);
22  }
23  }
decorate($a_value)
Decorate value.
+ Here is the call graph for this function:

◆ getSortable()

ilADTIntegerPresentationBridge::getSortable ( )

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

References ilADTPresentationBridge\getADT().

26  {
27  if(!$this->getADT()->isNull())
28  {
29  return $this->getADT()->getNumber();
30  }
31  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTIntegerPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

8  {
9  return ($a_adt instanceof ilADTInteger);
10  }

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