ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilBadgeHandlerGUI Class Reference
+ Collaboration diagram for ilBadgeHandlerGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 executeCommand ()
 

Protected Member Functions

 render ()
 

Protected Attributes

 $ctrl
 

Detailed Description

Definition at line 13 of file class.ilBadgeHandlerGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilBadgeHandlerGUI::__construct ( )

Constructor.

Definition at line 24 of file class.ilBadgeHandlerGUI.php.

25 {
26 global $DIC;
27
28 $this->ctrl = $DIC->ctrl();
29 }
global $DIC
Definition: saml.php:7

References $DIC.

Member Function Documentation

◆ executeCommand()

ilBadgeHandlerGUI::executeCommand ( )

Definition at line 31 of file class.ilBadgeHandlerGUI.php.

32 {
34
35 if ($ilCtrl->isAsynch()) {
36 $cmd = $ilCtrl->getCmd();
37 echo $this->$cmd();
38 exit();
39 }
40 }
global $ilCtrl
Definition: ilias.php:18

References $ctrl, $ilCtrl, and exit.

◆ render()

ilBadgeHandlerGUI::render ( )
protected

Definition at line 42 of file class.ilBadgeHandlerGUI.php.

43 {
44 include_once "Services/Badge/classes/class.ilBadgeRenderer.php";
45 $rnd = ilBadgeRenderer::initFromId(trim($_GET["id"]));
46 if ($rnd) {
47 return $rnd->renderModal();
48 }
49 }
$_GET["client_id"]
static initFromId($a_id)

References $_GET, and ilBadgeRenderer\initFromId().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilBadgeHandlerGUI::$ctrl
protected

Definition at line 18 of file class.ilBadgeHandlerGUI.php.

Referenced by executeCommand().


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