ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

References $DIC.

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

Member Function Documentation

◆ executeCommand()

ilBadgeHandlerGUI::executeCommand ( )

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

References $ctrl, $ilCtrl, and exit.

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

◆ render()

ilBadgeHandlerGUI::render ( )
protected

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

References $_GET, and ilBadgeRenderer\initFromId().

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)
+ 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: