4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   25                 $this->
setId(
"registration_code");
 
   32                         $this->
addColumn($this->lng->txt($c), $c);
 
   38                 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, 
"listCodes"));
 
   39                 $this->
setRowTemplate(
"tpl.code_list_row.html", 
"Services/Registration");
 
   51                 $this->
addCommandButton(
"exportCodes", $lng->txt(
"registration_codes_export"));
 
   65                 include_once(
"./Services/Registration/classes/class.ilRegistrationCode.php");
 
   68                         "registration_code" => 
"code",
 
   70                         "registration_generated" => 
"generated", 
 
   71                         "registration_used" => 
"used"                    
   79                         $this->filter[
"code"],
 
   80                         $this->filter[
"role"],
 
   81                         $this->filter[
"generated"]
 
   84                 if (count($codes_data[
"set"]) == 0 && $this->
getOffset() > 0)
 
   92                                 $this->filter[
"code"],
 
   93                                 $this->filter[
"role"],
 
   94                                 $this->filter[
"generated"]
 
   99                 foreach ($codes_data[
"set"] as $k => $code)
 
  109                                 $result[$k][
"registration_used"] = 
"";
 
  112                         $result[$k][
"role"] = $this->role_map[$code[
"role"]];
 
  113                         $result[$k][
"registration_code"] = $code[
"code"];
 
  114                         $result[$k][
"code_id"] = $code[
"code_id"];
 
  127                 global 
$lng, $rbacreview, $ilUser, $ilObjDataCache;
 
  129                 include_once(
"./Services/Registration/classes/class.ilRegistrationCode.php");
 
  132                 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
 
  133                 $ti = 
new ilTextInputGUI($lng->txt(
"registration_code"), 
"query");
 
  136                 $ti->setSubmitFormOnEnter(
true);
 
  138                 $ti->readFromSession();
 
  139                 $this->filter[
"code"] = $ti->getValue();
 
  143                 $this->role_map = array();
 
  144                 foreach($rbacreview->getGlobalRoles() as $role_id)
 
  146                         if(!in_array($role_id, array(SYSTEM_ROLE_ID, ANONYMOUS_ROLE_ID)))
 
  148                                 $this->role_map[$role_id] = $ilObjDataCache->lookupTitle($role_id);
 
  152                 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
  153                 include_once 
'./Services/AccessControl/classes/class.ilObjRole.php';
 
  154                 $options = array(
"" => $this->lng->txt(
"registration_roles_all"))+
 
  159                 $si->readFromSession();
 
  160                 $this->filter[
"role"] = $si->getValue();
 
  163                 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
  164                 $options = array(
"" => $this->lng->txt(
"registration_generated_all"));
 
  169                 $si = 
new ilSelectInputGUI($this->lng->txt(
"registration_generated"), 
"generated");
 
  172                 $si->readFromSession();
 
  173                 $this->filter[
"generated"] = $si->getValue();
 
  178                 return array(
"registration_code", 
"role", 
"registration_generated", 
"registration_used");
 
  186                 $this->tpl->setVariable(
"ID", $code[
"code_id"]);
 
  189                         $this->tpl->setVariable(
"VAL_".strtoupper($c), $code[$c]);