4require_once
'Services/Form/classes/class.ilFormPropertyGUI.php';
23 parent::__construct($a_title, $a_postvar);
45 $local_tpl =
new ilTemplate(
'tpl.prop_tos_signed_document.html',
true,
true,
'Services/TermsOfService');
47 require_once
'Services/UIComponent/Modal/classes/class.ilModalGUI.php';
50 $modal->setHeading(
$lng->txt(
'tos_agreement_document'));
51 $modal->setId(
'accepted_tos_' . $this->entity->getUserId());
52 $modal->setBody($this->entity->getText());
54 require_once
'Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php';
56 $local_tpl->setVariable(
'MODAL', $modal->getHTML());
57 $local_tpl->setVariable(
'MODAL_ID',
'accepted_tos_' . $this->entity->getUserId());
59 $tpl->setCurrentBlock(
'prop_generic');
60 $tpl->setVariable(
'PROP_GENERIC', $local_tpl->get());
61 $tpl->parseCurrentBlock();
static get($a_glyph, $a_text="")
Get glyph html.
static getInstance()
Get instance.
special template class to simplify handling of ITX/PEAR