ILIAS  trunk Revision v5.2.0beta1-34132-g2d4d73d4a0
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)
 
 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 5 of file class.ilADTBooleanPresentationBridge.php.

Member Function Documentation

◆ getHTML()

ilADTBooleanPresentationBridge::getHTML ( )

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

References ilADTPresentationBridge\decorate(), ilADTPresentationBridge\getADT(), and ILIAS\Repository\lng().

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

◆ getSortable()

ilADTBooleanPresentationBridge::getSortable ( )

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

References ilADTPresentationBridge\getADT().

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

◆ isValidADT()

ilADTBooleanPresentationBridge::isValidADT ( ilADT  $a_adt)
protected

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

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

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