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"]
98 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
102 $role_map[$role[
'id']] = $role[
'title'];
106 foreach ($codes_data[
"set"] as $k => $code)
116 $result[$k][
"registration_used"] =
"";
119 $result[$k][
"role"] = $role_map[$code[
"role"]];
120 $result[$k][
"registration_code"] = $code[
"code"];
121 $result[$k][
"code_id"] = $code[
"code_id"];
134 global
$lng, $rbacreview, $ilUser;
136 include_once(
"./Services/Registration/classes/class.ilRegistrationCode.php");
139 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
140 $ti =
new ilTextInputGUI($lng->txt(
"registration_code"),
"query");
143 $ti->setSubmitFormOnEnter(
true);
145 $ti->readFromSession();
146 $this->filter[
"code"] = $ti->getValue();
149 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
150 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
151 $options = array(
"" => $this->lng->txt(
"registration_roles_all"));
154 $options[$role[
'id']] = $role[
'title'];
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]);