ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilBadgeHandlerGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
14 {
18  protected $ctrl;
19 
20 
24  public function __construct()
25  {
26  global $DIC;
27 
28  $this->ctrl = $DIC->ctrl();
29  }
30 
31  public function executeCommand()
32  {
34 
35  if ($ilCtrl->isAsynch()) {
36  $cmd = $ilCtrl->getCmd();
37  echo $this->$cmd();
38  exit();
39  }
40  }
41 
42  protected function render()
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  }
50 }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
static initFromId($a_id)