ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilADTBooleanPresentationBridge Class Reference
+ Inheritance diagram for ilADTBooleanPresentationBridge:
+ Collaboration diagram for ilADTBooleanPresentationBridge:

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.ilADTBooleanPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTBooleanPresentationBridge::getHTML ( )

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

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

13  {
14  global $lng;
15 
16  if(!$this->getADT()->isNull())
17  {
18  // :TODO: force icon?
19 
20  $presentation_value = $this->getADT()->getStatus()
21  ? $lng->txt("yes")
22  : $lng->txt("no");
23  return $this->decorate($presentation_value);
24  }
25  }
decorate($a_value)
Decorate value.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:

◆ getSortable()

ilADTBooleanPresentationBridge::getSortable ( )

Definition at line 27 of file class.ilADTBooleanPresentationBridge.php.

References ilADTPresentationBridge\getADT().

28  {
29  if(!$this->getADT()->isNull())
30  {
31  // :TODO: cast to int ?
32  return $this->getADT()->getStatus() ? 1 : 0;
33  }
34  }
+ Here is the call graph for this function:

◆ isValidADT()

ilADTBooleanPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

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

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