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)
53 $this->
addColumn($this->optionalColumns[$column][
'txt'], $column);
55 $this->
addColumn($this->lng->txt(
'language'),
'lng');
56 $this->
addColumn($this->lng->txt(
'tos_agreement_document'),
'src');
58 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'applyAcceptanceHistoryFilter'));
60 $this->
setRowTemplate(
'tpl.tos_acceptance_history_table_row.html',
'Services/TermsOfService');
62 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
63 require_once
'Services/YUI/classes/class.ilYuiUtil.php';
81 'firstname' =>
array(
'txt' => $this->lng->txt(
'firstname'),
'default' =>
false),
82 'lastname' =>
array(
'txt' => $this->lng->txt(
'lastname'),
'default' =>
false)
94 foreach($data[
'items'] as &
$row)
96 $row[
'lng'] = $this->lng->txt(
'meta_l_' . $row[
'lng']);
108 $this->ctrl->setParameter($this->
getParentObject(),
'tosv_id', $row[
'tosv_id']);
109 $row[
'content_link'] = $this->ctrl->getLinkTarget($this->
getParentObject(),
'getAcceptedContentAsynch',
'',
true,
false);
116 $modal->setHeading($this->lng->txt(
'tos_agreement_document'));
119 $row[
'modal'] = $modal->getHTML();
127 return array(
'modal',
'ts',
'login',
'lng',
'src',
'text',
'id',
'img_down',
'content_link');
164 include_once
'Services/Form/classes/class.ilTextInputGUI.php';
165 $ul =
new ilTextInputGUI($this->lng->txt(
'login').
'/'.$this->lng->txt(
'email').
'/'.$this->lng->txt(
'name'),
'query');
166 $ul->
setDataSource($this->ctrl->getLinkTarget($this->getParentObject(),
'addUserAutoComplete',
'',
true));
168 $ul->setSubmitFormOnEnter(
true);
170 $ul->readFromSession();
171 $this->filter[
'query'] = $ul->getValue();
173 include_once
'Services/Form/classes/class.ilSelectInputGUI.php';
178 $options[$lng[
'title']] = $this->lng->txt(
'meta_l_' . $lng[
'title']);
187 $si->readFromSession();
188 $this->filter[
'lng'] = $si->getValue();
190 include_once
'Services/Form/classes/class.ilDateDurationInputGUI.php';
191 $this->tpl->addJavaScript(
"./Services/Form/js/Form.js");
194 $duration->setStartText($this->lng->txt(
'tos_period_from'));
195 $duration->setEndText($this->lng->txt(
'tos_period_until'));
201 $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 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.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
if(!is_array($argv)) $options
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.
Create styles array
The data for the language used.
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.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
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.
setFilterCommand($a_val, $a_caption=null)
Set filter command.