42        $ilCtrl = 
$DIC[
'ilCtrl'];
 
   45        $this->
setId(
"tst_eval_all");
 
   49        $this->
ctrl = $ilCtrl;
 
   51        $this->
setStyle(
'table', 
'fullwidth');
 
   58        if (!$this->anonymity) {
 
   60                if (strcmp(
$c, 
'gender') == 0) {
 
   61                    $this->
addColumn($this->
lng->txt(
"gender"), 
'gender', 
'');
 
   63                if (strcmp(
$c, 
'email') == 0) {
 
   66                if (strcmp(
$c, 
'exam_id') == 0 && $this->parent_obj->getObject()->isShowExamIdInTestResultsEnabled()) {
 
   67                    $this->
addColumn($this->
lng->txt(
"exam_id_label"), 
'exam_id', 
'');
 
   69                if (strcmp(
$c, 
'institution') == 0) {
 
   70                    $this->
addColumn($this->
lng->txt(
"institution"), 
'institution', 
'');
 
   72                if (strcmp(
$c, 
'street') == 0) {
 
   73                    $this->
addColumn($this->
lng->txt(
"street"), 
'street', 
'');
 
   75                if (strcmp(
$c, 
'city') == 0) {
 
   78                if (strcmp(
$c, 
'zipcode') == 0) {
 
   79                    $this->
addColumn($this->
lng->txt(
"zipcode"), 
'zipcode', 
'');
 
   83                    $this->
addColumn($this->
lng->txt(
"country"), 
'country', 
'');
 
   87                    $this->
addColumn($this->
lng->txt(
"country"), 
'sel_country', 
'');
 
   90                if (strcmp(
$c, 
'department') == 0) {
 
   91                    $this->
addColumn($this->
lng->txt(
"department"), 
'department', 
'');
 
   93                if (strcmp(
$c, 
'matriculation') == 0) {
 
   94                    $this->
addColumn($this->
lng->txt(
"matriculation"), 
'matriculation', 
'');
 
  101        if ($this->offeringQuestionHintsEnabled) {
 
  102            $this->
addColumn(
$lng->
txt(
"tst_question_hints_requested_hint_count_header"), 
"hint_count", 
"");
 
  107        if ($this->parent_obj->getObject()->getECTSOutput()) {
 
  109                if (strcmp(
$c, 
'ects_grade') == 0) {
 
  110                    $this->
addColumn($this->
lng->txt(
"ects_grade"), 
'ects_grade', 
'');
 
  119        $this->
setRowTemplate(
"tpl.table_evaluation_all.html", 
"Modules/Test");
 
  130            $this->
lng->loadLanguageModule(
'meta');
 
  142                if ($this->anonymity) {
 
  165        if (!$this->anonymity) {
 
  166            $cols[
"gender"] = array(
 
  170            $cols[
"email"] = array(
 
  174            $cols[
"institution"] = array(
 
  175                "txt" => 
$lng->
txt(
"institution"),
 
  178            $cols[
"street"] = array(
 
  182            $cols[
"city"] = array(
 
  186            $cols[
"zipcode"] = array(
 
  191                $cols[
"country"] = array(
 
  197                $cols[
"sel_country"] = array(
 
  202            $cols[
"department"] = array(
 
  203                "txt" => 
$lng->
txt(
"department"),
 
  206            $cols[
"matriculation"] = array(
 
  207                "txt" => 
$lng->
txt(
"matriculation"),
 
  210            if ($this->parent_obj->getObject()->isShowExamIdInTestResultsEnabled()) {
 
  211                $cols[
"exam_id"] = array(
 
  212                    "txt" => 
$lng->
txt(
"exam_id_label"),
 
  217        if ($this->parent_obj->getObject()->getECTSOutput()) {
 
  218            $cols[
"ects_grade"] = array(
 
  219                "txt" => 
$lng->
txt(
"ects_grade"),
 
  233        $rbacreview = 
$DIC[
'rbacreview'];
 
  237        include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
 
  239        $ti->setMaxLength(64);
 
  240        $ti->setValidationRegexp(
'/^[^%]*$/is');
 
  243        $ti->readFromSession();
 
  247        $ti->setMaxLength(64);
 
  248        $ti->setValidationRegexp(
'/^[^%]*$/is');
 
  251        $ti->readFromSession();
 
  255        $ti->setMaxLength(64);
 
  257        $ti->setValidationRegexp(
'/^[^%]*$/is');
 
  259        $ti->readFromSession();
 
  262        include_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  266        $si->readFromSession();
 
  273    protected function fillRow(array $a_set): void
 
  275        $this->tpl->setVariable(
"NAME", $a_set[
'name']);
 
  276        $this->tpl->setVariable(
"LOGIN", $a_set[
'login']);
 
  278            if (!$this->anonymity) {
 
  279                if (strcmp(
$c, 
'gender') == 0) {
 
  280                    $this->tpl->setCurrentBlock(
'gender');
 
  281                    $this->tpl->setVariable(
"GENDER", strlen($a_set[
'gender']) ? $this->
lng->txt(
'gender_' . $a_set[
'gender']) : 
' ');
 
  282                    $this->tpl->parseCurrentBlock();
 
  284                if (strcmp(
$c, 
'email') == 0) {
 
  285                    $this->tpl->setCurrentBlock(
'email');
 
  286                    $this->tpl->setVariable(
"EMAIL", strlen($a_set[
'email']) ? $a_set[
'email'] : 
' ');
 
  287                    $this->tpl->parseCurrentBlock();
 
  289                if (strcmp(
$c, 
'institution') == 0) {
 
  290                    $this->tpl->setCurrentBlock(
'institution');
 
  291                    $this->tpl->setVariable(
"INSTITUTION", strlen($a_set[
'institution']) ? $a_set[
'institution'] : 
' ');
 
  292                    $this->tpl->parseCurrentBlock();
 
  294                if (strcmp(
$c, 
'street') == 0) {
 
  295                    $this->tpl->setCurrentBlock(
'street');
 
  296                    $this->tpl->setVariable(
"STREET", strlen($a_set[
'street']) ? $a_set[
'street'] : 
' ');
 
  297                    $this->tpl->parseCurrentBlock();
 
  299                if (strcmp(
$c, 
'city') == 0) {
 
  300                    $this->tpl->setCurrentBlock(
'city');
 
  301                    $this->tpl->setVariable(
"CITY", strlen($a_set[
'city']) ? $a_set[
'city'] : 
' ');
 
  302                    $this->tpl->parseCurrentBlock();
 
  304                if (strcmp(
$c, 
'zipcode') == 0) {
 
  305                    $this->tpl->setCurrentBlock(
'zipcode');
 
  306                    $this->tpl->setVariable(
"ZIPCODE", strlen($a_set[
'zipcode']) ? $a_set[
'zipcode'] : 
' ');
 
  307                    $this->tpl->parseCurrentBlock();
 
  310                    $this->tpl->setCurrentBlock(
'country');
 
  311                    $this->tpl->setVariable(
"COUNTRY", strlen($a_set[
'country']) ? $a_set[
'country'] : 
' ');
 
  312                    $this->tpl->parseCurrentBlock();
 
  315                    $this->tpl->setCurrentBlock(
'country');
 
  316                    $this->tpl->setVariable(
"COUNTRY", strlen($a_set[
'sel_country']) ? $this->
getCountryTranslation($a_set[
'sel_country']) : 
' ');
 
  317                    $this->tpl->parseCurrentBlock();
 
  319                if (strcmp(
$c, 
'department') == 0) {
 
  320                    $this->tpl->setCurrentBlock(
'department');
 
  321                    $this->tpl->setVariable(
"DEPARTMENT", strlen($a_set[
'department']) ? $a_set[
'department'] : 
' ');
 
  322                    $this->tpl->parseCurrentBlock();
 
  324                if (strcmp(
$c, 
'matriculation') == 0) {
 
  325                    $this->tpl->setCurrentBlock(
'matriculation');
 
  326                    $this->tpl->setVariable(
"MATRICULATION", strlen($a_set[
'matriculation']) ? $a_set[
'matriculation'] : 
' ');
 
  327                    $this->tpl->parseCurrentBlock();
 
  329                if (strcmp(
$c, 
'exam_id') == 0 && $this->parent_obj->object->isShowExamIdInTestResultsEnabled()) {
 
  330                    $this->tpl->setCurrentBlock(
'exam_id');
 
  331                    $examId = is_string($a_set[
'exam_id']) && strlen($a_set[
'exam_id']) ? $a_set[
'exam_id'] : 
' ';
 
  332                    $this->tpl->setVariable(
'EXAM_ID', $examId);
 
  333                    $this->tpl->parseCurrentBlock();
 
  336            if ($this->parent_obj->object->getECTSOutput()) {
 
  337                if (strcmp(
$c, 
'ects_grade') == 0) {
 
  338                    $this->tpl->setCurrentBlock(
'ects_grade');
 
  339                    $this->tpl->setVariable(
"ECTS_GRADE", $a_set[
'ects_grade']);
 
  340                    $this->tpl->parseCurrentBlock();
 
  344        $reachedPercent = !$a_set[
'max'] ? 0 : $a_set[
'reached'] / $a_set[
'max'] * 100;
 
  345        $reached = $a_set[
'reached'] . 
" " . strtolower($this->
lng->txt(
"of")) . 
" " . $a_set[
'max'] . 
" (" . sprintf(
"%2.2f", $reachedPercent) . 
" %)";
 
  346        $this->tpl->setVariable(
"REACHED", $reached);
 
  348        if ($this->offeringQuestionHintsEnabled) {
 
  349            $this->tpl->setVariable(
"HINT_COUNT", $a_set[
'hint_count']);
 
  352        $a_set[
'answered'] = $a_set[
'questions_worked_through'] . 
" " . strtolower($this->
lng->txt(
"of")) . 
" " . $a_set[
'number_of_questions'] . 
" (" . sprintf(
"%2.2f", $a_set[
'answered']) . 
" %" . 
")";
 
  354        $this->tpl->setVariable(
"MARK", $a_set[
'mark']);
 
  355        $this->tpl->setVariable(
"ANSWERED", $a_set[
'answered']);
 
  356        $this->tpl->setVariable(
"WORKING_TIME", $a_set[
'working_time']);
 
  357        $this->tpl->setVariable(
"DETAILED", $a_set[
'details']);
 
  362        $scol = parent::getSelectedColumns();
 
  365        if (!is_array(
$cols)) {
 
  369        $fields_to_unset = array_diff(array_keys($scol), array_keys(
$cols));
 
  371        foreach ($fields_to_unset as 
$key) {
 
  380        return $this->
lng->txt(
'meta_c_' . $countryCode);
 
  388        if (
$ilSetting->get(
"usr_settings_hide_" . $fieldIdentifier)) { 
 
  392        if (!
$ilSetting->get(
'usr_settings_visib_reg_' . $fieldIdentifier)) { 
 
  396        if (!
$ilSetting->get(
'usr_settings_visib_lua_' . $fieldIdentifier)) { 
 
  400        if (
$ilSetting->get(
"usr_settings_disable_" . $fieldIdentifier)) { 
 
  404        if (!
$ilSetting->get(
'usr_settings_changeable_lua_' . $fieldIdentifier)) { 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
numericOrdering(string $a_field)
Should this field be sorted numeric?
 
getCountryTranslation($countryCode)
 
__construct($a_parent_obj, $a_parent_cmd, $anonymity=false, $offeringQuestionHintsEnabled=false)
 
isFieldEnabledEnoughByAdministration($fieldIdentifier)
 
fillRow(array $a_set)
Standard Version of Fill Row.
 
getSelectableColumns()
Get selectable columns.
 
$offeringQuestionHintsEnabled
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setFilterCommand(string $a_val, string $a_caption="")
 
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
 
setFormName(string $a_name="")
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
setResetCommand(string $a_val, string $a_caption="")
 
enable(string $a_module_name)
 
setStyle(string $a_element, string $a_style)
 
This class represents a text property in a property form.
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc