/** * Get settings */ protected function buildData() { $data = array(); /** @var $placeholder srCertificatePlaceholder */ foreach (srCertificateStandardPlaceholders::getStandardPlaceholders() as $identifier => $desc) { $row = array(); $row['identifier'] = $identifier; $row['description'] = $desc; $data[] = $row; } $this->setData($data); }
/** * Configure screen */ public function configure() { $form = new ilCertificateConfigFormGUI($this); $form->fillForm(); $ftpl = new ilTemplate('tpl.config_form.html', true, true, $this->pl->getDirectory()); $ftpl->setVariable("FORM", $form->getHTML()); $ftpl->setVariable("TXT_USE_PLACEHOLDERS", $this->pl->txt('txt_use_placeholders')); foreach (srCertificateStandardPlaceholders::getStandardPlaceholders() as $placeholder => $text) { $ftpl->setCurrentBlock("placeholder"); $ftpl->setVariable("PLACEHOLDER", $placeholder); $ftpl->setVariable("TXT_PLACEHOLDER", $text); $ftpl->parseCurrentBlock(); } $this->tpl->setContent($ftpl->get()); }