ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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{
15 public function executeCommand()
16 {
17 global $ilCtrl;
18
19 if($ilCtrl->isAsynch())
20 {
21 $cmd = $ilCtrl->getCmd();
22 echo $this->$cmd();
23 exit();
24 }
25 }
26
27 protected function render()
28 {
29 include_once "Services/Badge/classes/class.ilBadgeRenderer.php";
30 $rnd = ilBadgeRenderer::initFromId(trim($_GET["id"]));
31 if($rnd)
32 {
33 return $rnd->renderModal();
34 }
35 }
36}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static initFromId($a_id)
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35