/**
  * 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());
 }
 /**
  * @param string $identifier
  * @throws srCertificateException
  */
 public function setIdentifier($identifier)
 {
     if (!preg_match(self::REGEX_VALID_IDENTIFIER, $identifier)) {
         throw new srCertificateException(sprintf($this->pl->txt('msg_identifier_not_valid'), $identifier));
     }
     if (srCertificateStandardPlaceholders::isReservedIdentifier($identifier)) {
         throw new srCertificateException(sprintf($this->pl->txt('msg_reserved_identifier'), $identifier));
     }
     $this->identifier = $identifier;
 }