45 $this->
setId(
'tst_participants_' . $a_parent_obj->getTestObj()->getRefId());
50 $this->
lng = $DIC->language();
51 $this->
ctrl = $DIC->ctrl();
52 $this->renderer =
$DIC->ui()->renderer();
53 $this->ui_factory =
$DIC->ui()->factory();
55 $this->
setStyle(
'table',
'fullwidth');
60 $this->
setRowTemplate(
"tpl.il_as_tst_participants_row.html",
"Modules/Test");
127 return in_array($a_field, array(
144 $this->
addColumn($this->
lng->txt(
"login"),
'login',
'');
147 $this->
addColumn($this->
lng->txt(
"clientip"),
'clientip',
'');
150 $this->
addColumn($this->
lng->txt(
"tst_started"),
'started',
'');
151 $this->
addColumn($this->
lng->txt(
"tst_nr_of_tries_of_user"),
'tries',
'');
153 $this->
addColumn($this->
lng->txt(
"unfinished_passes"),
'unfinished',
'');
154 $this->
addColumn($this->
lng->txt(
"tst_finished"),
'finished',
'');
156 $this->
addColumn($this->
lng->txt(
"last_access"),
'access',
'');
167 $this->
addMultiCommand(
'removeParticipants', $this->
lng->txt(
'remove_as_participant'));
178 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
182 'all' =>
$lng->
txt(
'all_participants'),
183 'withSolutions' =>
$lng->
txt(
'with_solutions_participants'),
184 'withoutSolutions' =>
$lng->
txt(
'without_solutions_participants')
188 $ti->readFromSession();
189 $this->
filter[
"title"] = $ti->getValue();
196 $this->tpl->setCurrentBlock(
'checkbox_column');
197 $this->tpl->setVariable(
"CHB_ROW_KEY", $this->
fetchRowKey($a_set));
198 $this->tpl->parseCurrentBlock();
202 $this->tpl->setCurrentBlock(
'client_ip_column');
203 $this->tpl->setVariable(
"CLIENT_IP", $a_set[
'clientip']);
204 $this->tpl->setVariable(
"CIP_ROW_KEY", $this->
fetchRowKey($a_set));
205 $this->tpl->parseCurrentBlock();
209 $this->tpl->setCurrentBlock(
'actions_column');
211 if ($a_set[
'active_id'] > 0) {
214 $this->tpl->touchBlock(
'actions_column');
217 $this->tpl->parseCurrentBlock();
220 $this->tpl->setVariable(
"ROW_KEY", $this->
fetchRowKey($a_set));
221 $this->tpl->setVariable(
"LOGIN", $a_set[
'login']);
222 $this->tpl->setVariable(
"FULLNAME", $a_set[
'name']);
224 $this->tpl->setVariable(
"STARTED", ($a_set[
'started']) ? $this->
buildOkIcon() :
'');
228 $this->tpl->setVariable(
"FINISHED", ($a_set[
'finished']) ? $this->
buildOkIcon() :
'');
236 $this->
ctrl->setParameterByClass(
'iltestevaluationgui',
'active_id', $data[
'active_id']);
239 $finishHref = $this->
ctrl->getLinkTargetByClass(
'ilTestEvaluationGUI',
'finishTestPassForSingleUser');
240 $asl->addItem($this->
lng->txt(
'finish_test'), $finishHref, $finishHref);
262 if (
$data[
'tries'] < 1) {
266 if (
$data[
'tries'] > 1) {
267 return sprintf($this->
lng->txt(
"passes_finished"), $data[
'tries']);
270 return sprintf($this->
lng->txt(
"pass_finished"), $data[
'tries']);
275 if (
$data[
'unfinished']) {
276 return $this->
lng->txt(
'yes');
279 return $this->
lng->txt(
'no');
284 return $this->renderer->render($this->ui_factory->symbol()->icon()->custom(
286 $this->lng->txt(
"ok")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilCtrl provides processing control methods.
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@classDescription Date and time handling
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...
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
setFormName(string $a_name="")
addMultiCommand(string $a_cmd, string $a_text)
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)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
enable(string $a_module_name)
setStyle(string $a_element, string $a_style)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct($a_parent_obj, $a_parent_cmd)
bool $manageResultsCommandsEnabled
ILIAS UI Renderer $renderer
setManageResultsCommandsEnabled(bool $manageResultsCommandsEnabled)
numericOrdering(string $a_field)
Should this field be sorted numeric?
fetchTriesValue(array $data)
buildUnfinishedPassesStatusString(array $data)
bool $participantHasSolutionsFilterEnabled
isActionsColumnRequired()
isManageInviteesCommandsEnabled()
ILIAS UI Factory $ui_factory
setParticipantHasSolutionsFilterEnabled(bool $participantHasSolutionsFilterEnabled)
setRowKeyDataField(string $rowKeyDataField)
buildFormattedAccessDate(array $data)
bool $manageInviteesCommandsEnabled
isManageResultsCommandsEnabled()
isParticipantHasSolutionsFilterEnabled()
fillRow(array $a_set)
Standard Version of Fill Row.
setManageInviteesCommandsEnabled(bool $manageInviteesCommandsEnabled)
buildActionsMenu(array $data)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc