4require_once
'Services/Form/classes/class.ilFormPropertyGUI.php';
30 parent::__construct($a_title, $a_postvar);
33 $this->lng =
$DIC[
'lng'];
49 $local_tpl =
new ilTemplate(
'tpl.prop_tos_signed_document.html',
true,
true,
'Services/TermsOfService');
51 require_once
'Services/UIComponent/Modal/classes/class.ilModalGUI.php';
54 $modal->setHeading($this->lng->txt(
'tos_agreement_document'));
55 $modal->setId(
'accepted_tos_' . $this->entity->getUserId());
56 $modal->setBody($this->entity->getText());
58 require_once
'Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php';
60 $local_tpl->setVariable(
'MODAL', $modal->getHTML());
61 $local_tpl->setVariable(
'MODAL_ID',
'accepted_tos_' . $this->entity->getUserId());
63 $tpl->setCurrentBlock(
'prop_generic');
64 $tpl->setVariable(
'PROP_GENERIC', $local_tpl->get());
65 $tpl->parseCurrentBlock();
An exception for terminatinating execution or to throw for unit testing.
static get($a_glyph, $a_text="")
Get glyph html.
static getInstance()
Get instance.
special template class to simplify handling of ITX/PEAR