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';
32 $this->ctrl = $DIC[
'ilCtrl'];
33 $this->tpl = $DIC[
'tpl'];
36 $this->
setId(
'tos_acceptance_history');
43 parent::__construct($a_parent_obj, $a_parent_cmd);
45 $this->
setTitle($this->lng->txt(
'tos_acceptance_history'));
47 $this->
addColumn($this->lng->txt(
'tos_acceptance_datetime'),
'ts');
48 $this->
addColumn($this->lng->txt(
'login'),
'login');
51 foreach ($this->visibleOptionalColumns as
$column) {
52 $this->
addColumn($this->optionalColumns[$column][
'txt'], $column);
54 $this->
addColumn($this->lng->txt(
'language'),
'lng');
55 $this->
addColumn($this->lng->txt(
'tos_agreement_document'),
'src');
57 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'applyAcceptanceHistoryFilter'));
59 $this->
setRowTemplate(
'tpl.tos_acceptance_history_table_row.html',
'Services/TermsOfService');
61 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
62 require_once
'Services/YUI/classes/class.ilYuiUtil.php';
80 'firstname' =>
array(
'txt' => $this->lng->txt(
'firstname'),
'default' =>
false),
81 'lastname' =>
array(
'txt' => $this->lng->txt(
'lastname'),
'default' =>
false)
93 foreach ($data[
'items'] as &
$row) {
94 $row[
'lng'] = $this->lng->txt(
'meta_l_' . $row[
'lng']);
104 $unique_id = md5($row[
'usr_id'] . $row[
'ts']);
106 $this->ctrl->setParameter($this->
getParentObject(),
'tosv_id', $row[
'tosv_id']);
107 $row[
'content_link'] = $this->ctrl->getLinkTarget($this->
getParentObject(),
'getAcceptedContentAsynch',
'',
true,
false);
114 $modal->setHeading($this->lng->txt(
'tos_agreement_document'));
117 $row[
'modal'] = $modal->getHTML();
125 return array(
'modal',
'ts',
'login',
'lng',
'src',
'text',
'id',
'img_down',
'content_link');
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) {
173 $options[$lng[
'title']] = $this->lng->txt(
'meta_l_' . $lng[
'title']);
182 $si->readFromSession();
183 $this->filter[
'lng'] = $si->getValue();
185 include_once
'Services/Form/classes/class.ilDateDurationInputGUI.php';
186 $this->tpl->addJavaScript(
"./Services/Form/js/Form.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.
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 formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
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.
__construct(ilObjectGUI $a_parent_obj, $a_parent_cmd)
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static initOverlay(ilTemplate $a_main_tpl=null)
Init YUI Overlay module.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
Class ilObjectGUI Basic methods of all Output classes.
This class represents a text property in a property form.
formatCellValue($column, array $row)
getSelectedColumns()
Get selected columns.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static getInstance()
Get instance.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
prepareData(array &$data)
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.
static initjQuery($a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static initPanel($a_resize=false, ilTemplate $a_main_tpl=null)
Init yui panel.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
setFilterCommand($a_val, $a_caption=null)
Set filter command.