4 require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceTableGUI.php';
5 require_once
'Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php';
6 require_once
'Services/UIComponent/Modal/classes/class.ilModalGUI.php';
28 $this->
setId(
'tos_acceptance_history');
35 parent::__construct($a_parent_obj, $a_parent_cmd);
37 $this->
setTitle($this->lng->txt(
'tos_acceptance_history'));
39 $this->
addColumn($this->lng->txt(
'tos_acceptance_datetime'),
'ts');
40 $this->
addColumn($this->lng->txt(
'login'),
'login');
43 foreach($this->visibleOptionalColumns as $column)
45 $this->
addColumn($this->optionalColumns[$column][
'txt'], $column);
47 $this->
addColumn($this->lng->txt(
'language'),
'lng');
48 $this->
addColumn($this->lng->txt(
'tos_agreement_document'),
'src');
50 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'applyAcceptanceHistoryFilter'));
52 $this->
setRowTemplate(
'tpl.tos_acceptance_history_table_row.html',
'Services/TermsOfService');
54 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
55 require_once
'Services/YUI/classes/class.ilYuiUtil.php';
73 'firstname' => array(
'txt' => $this->lng->txt(
'firstname'),
'default' =>
false),
74 'lastname' => array(
'txt' => $this->lng->txt(
'lastname'),
'default' =>
false)
86 foreach($data[
'items'] as &
$row)
88 $row[
'lng'] = $this->lng->txt(
'meta_l_' . $row[
'lng']);
100 $this->ctrl->setParameter($this->
getParentObject(),
'tosv_id', $row[
'tosv_id']);
101 $row[
'content_link'] = $this->ctrl->getLinkTarget($this->
getParentObject(),
'getAcceptedContentAsynch',
'',
true,
false);
107 $modal->setHeading($this->lng->txt(
'tos_agreement_document'));
110 $row[
'modal'] = $modal->getHTML();
118 return array(
'modal',
'ts',
'login',
'lng',
'src',
'text',
'id',
'img_down',
'content_link');
133 return $row[$column];
160 include_once
'Services/Form/classes/class.ilTextInputGUI.php';
161 $ul =
new ilTextInputGUI($this->lng->txt(
'login').
'/'.$this->lng->txt(
'email').
'/'.$this->lng->txt(
'name'),
'query');
162 $ul->
setDataSource($this->ctrl->getLinkTarget($this->getParentObject(),
'addUserAutoComplete',
'',
true));
164 $ul->setSubmitFormOnEnter(
true);
166 $ul->readFromSession();
167 $this->filter[
'query'] = $ul->getValue();
169 include_once
'Services/Form/classes/class.ilSelectInputGUI.php';
172 foreach($languages as
$lng)
174 $options[$lng[
'title']] = $this->lng->txt(
'meta_l_' . $lng[
'title']);
183 $si->readFromSession();
184 $this->filter[
'lng'] = $si->getValue();
186 include_once
'Services/Form/classes/class.ilDateDurationInputGUI.php';
187 $tpl->addJavaScript(
'./Services/Form/js/date_duration.js');
189 $duration->
setStartText($this->lng->txt(
'tos_period_from'));
190 $duration->setEndText($this->lng->txt(
'tos_period_until'));
193 $duration->setShowTime(
true);
195 $duration->readFromSession();
196 $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.
setExternalSegmentation($a_val)
Set external segmentation.
static get($a_glyph, $a_text="")
Get glyph html.
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.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
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.
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.
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.
static getInstance()
Get instance.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
prepareData(array &$data)
static initOverlay()
Init YUI Overlay module.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
static initjQuery($a_tpl=null)
Init jQuery.
setFilterCommand($a_val, $a_caption=null)
Set filter command.