5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
31 $this->
setId(
"tst_eval_all");
32 parent::__construct($a_parent_obj, $a_parent_cmd);
37 $this->
setStyle(
'table',
'fullwidth');
38 $this->
addColumn($lng->txt(
"name"),
"name",
"");
39 $this->
addColumn($lng->txt(
"login"),
"login",
"");
44 if (!$this->anonymity) {
46 if (strcmp($c,
'gender') == 0) {
47 $this->
addColumn($this->lng->txt(
"gender"),
'gender',
'');
49 if (strcmp($c,
'email') == 0) {
50 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
52 if (strcmp($c,
'institution') == 0) {
53 $this->
addColumn($this->lng->txt(
"institution"),
'institution',
'');
55 if (strcmp($c,
'street') == 0) {
56 $this->
addColumn($this->lng->txt(
"street"),
'street',
'');
58 if (strcmp($c,
'city') == 0) {
59 $this->
addColumn($this->lng->txt(
"city"),
'city',
'');
61 if (strcmp($c,
'zipcode') == 0) {
62 $this->
addColumn($this->lng->txt(
"zipcode"),
'zipcode',
'');
66 $this->
addColumn($this->lng->txt(
"country"),
'country',
'');
70 $this->
addColumn($this->lng->txt(
"country"),
'sel_country',
'');
73 if (strcmp($c,
'department') == 0) {
74 $this->
addColumn($this->lng->txt(
"department"),
'department',
'');
76 if (strcmp($c,
'matriculation') == 0) {
77 $this->
addColumn($this->lng->txt(
"matriculation"),
'matriculation',
'');
82 $this->
addColumn($lng->txt(
"tst_reached_points"),
"reached",
"");
84 if ($this->offeringQuestionHintsEnabled) {
85 $this->
addColumn($lng->txt(
"tst_question_hints_requested_hint_count_header"),
"hint_count",
"");
88 $this->
addColumn($lng->txt(
"tst_mark"),
"mark",
"");
90 if ($this->parent_obj->object->getECTSOutput()) {
92 if (strcmp($c,
'ects_grade') == 0) {
93 $this->
addColumn($this->lng->txt(
"ects_grade"),
'ects_grade',
'');
97 $this->
addColumn($lng->txt(
"tst_answered_questions"),
"answered",
"");
98 $this->
addColumn($lng->txt(
"working_time"),
"working_time",
"");
99 $this->
addColumn($lng->txt(
"detailed_evaluation"),
"details",
"");
101 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
102 $this->
setRowTemplate(
"tpl.table_evaluation_all.html",
"Modules/Test");
113 $this->lng->loadLanguageModule(
'meta');
126 if ($this->anonymity) {
146 if (!$this->anonymity) {
148 "txt" => $lng->txt(
"gender"),
152 "txt" => $lng->txt(
"email"),
155 $cols[
"institution"] =
array(
156 "txt" => $lng->txt(
"institution"),
159 $cols[
"street"] =
array(
160 "txt" => $lng->txt(
"street"),
163 $cols[
"city"] =
array(
164 "txt" => $lng->txt(
"city"),
167 $cols[
"zipcode"] =
array(
168 "txt" => $lng->txt(
"zipcode"),
172 $cols[
"country"] =
array(
173 "txt" => $lng->txt(
"country"),
178 $cols[
"sel_country"] =
array(
179 "txt" => $lng->txt(
"country"),
183 $cols[
"department"] =
array(
184 "txt" => $lng->txt(
"department"),
187 $cols[
"matriculation"] =
array(
188 "txt" => $lng->txt(
"matriculation"),
192 if ($this->parent_obj->object->getECTSOutput()) {
194 "txt" => $lng->txt(
"ects_grade"),
209 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
212 $ti->setValidationRegexp(
'/^[^%]*$/is');
215 $ti->readFromSession();
216 $this->filter[
"name"] = $ti->getValue();
221 $ti->setValidationRegexp(
'/^[^%]*$/is');
224 $ti->readFromSession();
225 $this->filter[
"group"] = $ti->getValue();
231 $ti->setValidationRegexp(
'/^[^%]*$/is');
233 $ti->readFromSession();
234 $this->filter[
"course"] = $ti->getValue();
237 include_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
241 $si->readFromSession();
242 $this->filter[
"passedonly"] =
$si->getValue();
251 $this->tpl->setVariable(
"NAME",
$data[
'name']);
252 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
254 if (!$this->anonymity) {
255 if (strcmp($c,
'gender') == 0) {
256 $this->tpl->setCurrentBlock(
'gender');
257 $this->tpl->setVariable(
"GENDER", $this->lng->txt(
'gender_' .
$data[
'gender']));
258 $this->tpl->parseCurrentBlock();
260 if (strcmp($c,
'email') == 0) {
261 $this->tpl->setCurrentBlock(
'email');
262 $this->tpl->setVariable(
"EMAIL", strlen(
$data[
'email']) ?
$data[
'email'] :
' ');
263 $this->tpl->parseCurrentBlock();
265 if (strcmp($c,
'institution') == 0) {
266 $this->tpl->setCurrentBlock(
'institution');
267 $this->tpl->setVariable(
"INSTITUTION", strlen(
$data[
'institution']) ?
$data[
'institution'] :
' ');
268 $this->tpl->parseCurrentBlock();
270 if (strcmp($c,
'street') == 0) {
271 $this->tpl->setCurrentBlock(
'street');
272 $this->tpl->setVariable(
"STREET", strlen(
$data[
'street']) ?
$data[
'street'] :
' ');
273 $this->tpl->parseCurrentBlock();
275 if (strcmp($c,
'city') == 0) {
276 $this->tpl->setCurrentBlock(
'city');
277 $this->tpl->setVariable(
"CITY", strlen(
$data[
'city']) ?
$data[
'city'] :
' ');
278 $this->tpl->parseCurrentBlock();
280 if (strcmp($c,
'zipcode') == 0) {
281 $this->tpl->setCurrentBlock(
'zipcode');
282 $this->tpl->setVariable(
"ZIPCODE", strlen(
$data[
'zipcode']) ?
$data[
'zipcode'] :
' ');
283 $this->tpl->parseCurrentBlock();
286 $this->tpl->setCurrentBlock(
'country');
287 $this->tpl->setVariable(
"COUNTRY", strlen(
$data[
'country']) ?
$data[
'country'] :
' ');
288 $this->tpl->parseCurrentBlock();
291 $this->tpl->setCurrentBlock(
'country');
293 $this->tpl->parseCurrentBlock();
295 if (strcmp($c,
'department') == 0) {
296 $this->tpl->setCurrentBlock(
'department');
297 $this->tpl->setVariable(
"DEPARTMENT", strlen(
$data[
'department']) ?
$data[
'department'] :
' ');
298 $this->tpl->parseCurrentBlock();
300 if (strcmp($c,
'matriculation') == 0) {
301 $this->tpl->setCurrentBlock(
'matriculation');
302 $this->tpl->setVariable(
"MATRICULATION", strlen(
$data[
'matriculation']) ?
$data[
'matriculation'] :
' ');
303 $this->tpl->parseCurrentBlock();
306 if ($this->parent_obj->object->getECTSOutput()) {
307 if (strcmp($c,
'ects_grade') == 0) {
308 $this->tpl->setCurrentBlock(
'ects_grade');
309 $this->tpl->setVariable(
"ECTS_GRADE",
$data[
'ects_grade']);
310 $this->tpl->parseCurrentBlock();
314 $reachedPercent = !
$data[
'max'] ? 0 :
$data[
'reached'] /
$data[
'max'] * 100;
315 $reached =
$data[
'reached'] .
" " . strtolower($this->lng->txt(
"of")) .
" " .
$data[
'max'] .
" (" . sprintf(
"%2.2f", $reachedPercent) .
" %)";
316 $this->tpl->setVariable(
"REACHED", $reached);
318 if ($this->offeringQuestionHintsEnabled) {
319 $this->tpl->setVariable(
"HINT_COUNT",
$data[
'hint_count']);
322 $data[
'answered'] =
$data[
'questions_worked_through'] .
" " . strtolower($this->lng->txt(
"of")) .
" " .
$data[
'number_of_questions'] .
" (" . sprintf(
"%2.2f",
$data[
'answered']) .
" %" .
")";
324 $this->tpl->setVariable(
"MARK",
$data[
'mark']);
325 $this->tpl->setVariable(
"ANSWERED",
$data[
'answered']);
326 $this->tpl->setVariable(
"WORKING_TIME",
$data[
'working_time']);
327 $this->tpl->setVariable(
"DETAILED",
$data[
'details']);
332 $scol = parent::getSelectedColumns();
335 if (!is_array(
$cols)) {
339 $fields_to_unset = array_diff(array_keys($scol), array_keys(
$cols));
341 foreach ($fields_to_unset as
$key) {
350 return $this->lng->txt(
'meta_c_' . $countryCode);
357 if ($ilSetting->get(
"usr_settings_hide_" . $fieldIdentifier)) {
361 if (!$ilSetting->get(
'usr_settings_visib_reg_' . $fieldIdentifier)) {
365 if (!$ilSetting->get(
'usr_settings_visib_lua_' . $fieldIdentifier)) {
369 if ($ilSetting->get(
"usr_settings_disable_" . $fieldIdentifier)) {
373 if (!$ilSetting->get(
'usr_settings_changeable_lua_' . $fieldIdentifier)) {
getCountryTranslation($countryCode)
__construct($a_parent_obj, $a_parent_cmd, $anonymity=false, $offeringQuestionHintsEnabled=false)
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
fillRow($data)
Standard Version of Fill Row.
setStyle($a_element, $a_style)
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
TableGUI class for evaluation of all users.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
enable($a_module_name)
enables particular modules of table
isFieldEnabledEnoughByAdministration($fieldIdentifier)
This class represents a text property in a property form.
setMaxLength($a_maxlength)
Set Max Length.
numericOrdering($a_field)
Should this field be sorted numeric?
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
$offeringQuestionHintsEnabled
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFilterCommand($a_val, $a_caption=null)
Set filter command.