4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
27 $this->ctrl = $DIC->ctrl();
30 $this->team = $a_team;
32 parent::__construct($a_parent_obj, $a_parent_cmd);
34 $this->
setTitle($this->lng->txt(
"exc_team_log"));
36 $this->
addColumn($this->lng->txt(
"date"),
"tstamp");
37 $this->
addColumn($this->lng->txt(
"user"),
"user");
38 $this->
addColumn($this->lng->txt(
"details"),
"details");
43 $this->
setRowTemplate(
"tpl.exc_team_log_row.html",
"Modules/Exercise");
56 foreach ($this->team->getLog() as $item) {
58 switch ($item[
"action"]) {
60 $mess =
"create_team";
68 $mess =
"remove_member";
76 $mess =
"remove_file";
80 $details = $this->lng->txt(
"exc_team_log_" . $mess);
81 if ($item[
"details"]) {
82 $details = sprintf($details, $item[
"details"]);
86 "tstamp" => $item[
"tstamp"],
104 $this->tpl->setVariable(
"TSTAMP", $date);
105 $this->tpl->setVariable(
"TXT_USER", $a_set[
"user"]);
106 $this->tpl->setVariable(
"TXT_DETAILS", $a_set[
"details"]);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
const TEAM_LOG_REMOVE_MEMBER
List all log entries of team.
static _lookupFullname($a_user_id)
Lookup Full Name.
Exercise assignment team.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
__construct($a_parent_obj, $a_parent_cmd, ilExAssignmentTeam $a_team)
Constructor.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
const TEAM_LOG_REMOVE_FILE
setRowTemplate($a_template, $a_template_dir="")
Set row template.
getItems()
Get all completed tests.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
const TEAM_LOG_CREATE_TEAM
const TEAM_LOG_ADD_MEMBER
fillRow($a_set)
Fill template row.