4 require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceTableGUI.php';
26 $this->
setId(
'tos_acceptance_history');
33 parent::__construct($a_parent_obj, $a_parent_cmd);
35 $this->
setTitle($this->lng->txt(
'tos_acceptance_history'));
37 $this->
addColumn($this->lng->txt(
'tos_acceptance_datetime'),
'ts');
38 $this->
addColumn($this->lng->txt(
'login'),
'login');
41 foreach($this->visibleOptionalColumns as $column)
43 $this->
addColumn($this->optionalColumns[$column][
'txt'], $column);
45 $this->
addColumn($this->lng->txt(
'language'),
'lng');
46 $this->
addColumn($this->lng->txt(
'tos_agreement_document'),
'src');
48 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'applyAcceptanceHistoryFilter'));
50 $this->
setRowTemplate(
'tpl.tos_acceptance_history_table_row.html',
'Services/TermsOfService');
52 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
53 require_once
'Services/YUI/classes/class.ilYuiUtil.php';
71 'firstname' => array(
'txt' => $this->lng->txt(
'firstname'),
'default' =>
false),
72 'lastname' => array(
'txt' => $this->lng->txt(
'lastname'),
'default' =>
false)
84 foreach($data[
'items'] as &
$row)
86 $row[
'lng'] = $this->lng->txt(
'meta_l_' . $row[
'lng']);
96 $this->ctrl->setParameter($this->
getParentObject(),
'tosv_id', $row[
'tosv_id']);
97 $row[
'content_link'] = $this->ctrl->getLinkTarget($this->
getParentObject(),
'getAcceptedContentAsynch',
'',
true,
false);
101 $row[
'id'] = md5($row[
'usr_id'].$row[
'ts']);
109 return array(
'ts',
'login',
'lng',
'src',
'text',
'id',
'img_down',
'content_link');
124 return $row[$column];
151 include_once
'Services/Form/classes/class.ilTextInputGUI.php';
152 $ul =
new ilTextInputGUI($this->lng->txt(
'login').
'/'.$this->lng->txt(
'email').
'/'.$this->lng->txt(
'name'),
'query');
153 $ul->
setDataSource($this->ctrl->getLinkTarget($this->getParentObject(),
'addUserAutoComplete',
'',
true));
155 $ul->setSubmitFormOnEnter(
true);
157 $ul->readFromSession();
158 $this->filter[
'query'] = $ul->getValue();
160 include_once
'Services/Form/classes/class.ilSelectInputGUI.php';
163 foreach($languages as
$lng)
165 $options[$lng[
'title']] = $this->lng->txt(
'meta_l_' . $lng[
'title']);
174 $si->readFromSession();
175 $this->filter[
'lng'] = $si->getValue();
177 include_once
'Services/Form/classes/class.ilDateDurationInputGUI.php';
178 $tpl->addJavaScript(
'./Services/Form/js/date_duration.js');
180 $duration->
setStartText($this->lng->txt(
'tos_period_from'));
181 $duration->setEndText($this->lng->txt(
'tos_period_until'));
184 $duration->setMinuteStepSize(5);
185 $duration->setShowTime(
true);
186 $duration->setShowDate(
true);
188 $duration->readFromSession();
189 $this->optional_filter[
'period'] = $duration->getValue();
setExternalSorting($a_val)
Set external sorting.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor.
setDataSource($href, $a_delimiter=null)
set datasource link for js autocomplete
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFilterCommand($a_val)
Set filter command.
setExternalSegmentation($a_val)
Set external segmentation.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
static _getObjectsByType($a_obj_type="", $a_owner="")
Get objects by type.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
if(!is_array($argv)) $options
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Class ilObjectGUI Basic methods of all Output classes.
This class represents a text property in a property form.
static formatDate(ilDateTime $date)
Format a date public.
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
formatCellValue($column, array $row)
getSelectedColumns()
Get selected columns.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static initPanel($a_resize=false)
Init yui panel.
prepareData(array &$data)
static initOverlay()
Init YUI Overlay module.
setFormAction($a_form_action)
Set Form action parameter.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
static initjQuery($a_tpl=null)
Init jQuery.
setResetCommand($a_val)
Set reset filter command.