5 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
6 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
32 $this->
setId(
'tst_participants_' . $a_parent_obj->getTestObj()->getRefId());
33 parent::__construct($a_parent_obj, $a_parent_cmd);
42 $this->
setStyle(
'table',
'fullwidth');
45 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
47 $this->
setRowTemplate(
"tpl.il_as_tst_participants_row.html",
"Modules/Test");
147 return in_array($field, array(
163 $this->
addColumn($this->lng->txt(
"name"),
'name',
'');
164 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
167 $this->
addColumn($this->lng->txt(
"clientip"),
'clientip',
'');
170 $this->
addColumn($this->lng->txt(
"tst_started"),
'started',
'');
171 $this->
addColumn($this->lng->txt(
"tst_nr_of_tries_of_user"),
'tries',
'');
173 $this->
addColumn($this->lng->txt(
"unfinished_passes"),
'unfinished',
'');
174 $this->
addColumn($this->lng->txt(
"tst_finished"),
'finished',
'');
176 $this->
addColumn($this->lng->txt(
"last_access"),
'access',
'');
187 $this->
addMultiCommand(
'removeParticipants', $this->lng->txt(
'remove_as_participant'));
198 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
202 'all' =>
$lng->txt(
'all_participants'),
203 'withSolutions' =>
$lng->txt(
'with_solutions_participants'),
204 'withoutSolutions' =>
$lng->txt(
'without_solutions_participants')
208 $ti->readFromSession();
209 $this->filter[
"title"] = $ti->getValue();
219 $this->tpl->setCurrentBlock(
'checkbox_column');
221 $this->tpl->parseCurrentBlock();
225 $this->tpl->setCurrentBlock(
'client_ip_column');
226 $this->tpl->setVariable(
"CLIENT_IP",
$data[
'clientip']);
228 $this->tpl->parseCurrentBlock();
232 $this->tpl->setCurrentBlock(
'actions_column');
234 if (
$data[
'active_id'] > 0) {
237 $this->tpl->touchBlock(
'actions_column');
240 $this->tpl->parseCurrentBlock();
244 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
245 $this->tpl->setVariable(
"FULLNAME",
$data[
'name']);
247 $this->tpl->setVariable(
"STARTED", (
$data[
'started']) ? $this->
buildOkIcon() :
'');
251 $this->tpl->setVariable(
"FINISHED", (
$data[
'finished']) ? $this->
buildOkIcon() :
'');
263 $this->ctrl->setParameterByClass(
'iltestevaluationgui',
'active_id',
$data[
'active_id']);
266 $finishHref = $this->ctrl->getLinkTargetByClass(
'ilTestEvaluationGUI',
'finishTestPassForSingleUser');
267 $asl->addItem($this->lng->txt(
'finish_test'), $finishHref, $finishHref);
300 if (
$data[
'tries'] < 1) {
304 if (
$data[
'tries'] > 1) {
305 return sprintf($this->lng->txt(
"passes_finished"),
$data[
'tries']);
308 return sprintf($this->lng->txt(
"pass_finished"),
$data[
'tries']);
317 if (
$data[
'unfinished']) {
318 return $this->lng->txt(
'yes');
321 return $this->lng->txt(
'no');
329 return "<img border=\"0\" align=\"middle\" src=\"" .
ilUtil::getImagePath(
"icon_ok.svg") .
"\" alt=\"" . $this->lng->txt(
"ok") .
"\" />";
setStyle($a_element, $a_style)
$manageInviteesCommandsEnabled
isParticipantHasSolutionsFilterEnabled()
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setRowKeyDataField($rowKeyDataField)
isManageResultsCommandsEnabled()
buildUnfinishedPassesStatusString($data)
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setParticipantHasSolutionsFilterEnabled(bool $participantHasSolutionsFilterEnabled)
buildFormattedAccessDate($data)
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setManageInviteesCommandsEnabled($manageInviteesCommandsEnabled)
setManageResultsCommandsEnabled($manageResultsCommandsEnabled)
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
isManageInviteesCommandsEnabled()
$manageResultsCommandsEnabled
isActionsColumnRequired()
__construct($a_parent_obj, $a_parent_cmd)
$participantHasSolutionsFilterEnabled