/**
  * Build action menu
  *
  * @param array $a_set
  * @return ilAdvancedSelectionListGUI
  */
 protected function buildActionMenu(array $a_set)
 {
     $list = new ilAdvancedSelectionListGUI();
     $list->setId($a_set['identifier']);
     $list->setListTitle($this->pl->txt('actions'));
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'type_id', $this->type->getId());
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'placeholder_id', $a_set['id']);
     $list->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'editPlaceholder'));
     $list->addItem($this->lng->txt('delete'), 'delete', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'confirmDeletePlaceholder'));
     return $list;
 }
 /**
  * Build action menu
  *
  * @param array $a_set
  * @return ilAdvancedSelectionListGUI
  */
 protected function buildActionMenu(array $a_set)
 {
     $list = new ilAdvancedSelectionListGUI();
     $list->setId($a_set['identifier']);
     $list->setListTitle($this->pl->txt('actions'));
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'type_id', $this->type->getId());
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'identifier', $a_set['identifier']);
     $list->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'editSetting'));
     $this->ctrl->clearParametersByClass('srcertificatetypegui');
     return $list;
 }
 /**
  * @param $parent_gui
  * @param $type
  */
 function __construct($parent_gui, srCertificateType $type)
 {
     global $tpl, $ilCtrl, $lng, $rbacreview;
     $this->parent_gui = $parent_gui;
     $this->type = $type;
     $this->tpl = $tpl;
     $this->ctrl = $ilCtrl;
     $this->rbac = $rbacreview;
     $this->pl = ilCertificatePlugin::getInstance();
     $this->lng = $lng;
     $this->isNew = $this->type->getId() ? false : true;
     $this->lng->loadLanguageModule('meta');
     $this->initForm();
 }
<#16>
    <?php 
require_once './Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/Certificate/classes/Definition/class.srCertificateDefinition.php';
require_once './Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/Certificate/classes/Definition/class.srCertificateDefinitionSetting.php';
require_once './Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/Certificate/classes/Type/class.srCertificateTypeSetting.php';
require_once './Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/Certificate/classes/Type/class.srCertificateType.php';
foreach (srCertificateDefinition::get() as $cert_def) {
    $setting = new srCertificateDefinitionSetting();
    $setting->setDefinitionId($cert_def->getId());
    $setting->setIdentifier(srCertificateTypeSetting::IDENTIFIER_SCORM_TIMING);
    $setting->setValue(0);
    $setting->save();
}
foreach (srCertificateType::get() as $type) {
    $setting = new srCertificateTypeSetting();
    $setting->setTypeId($type->getId());
    $setting->setIdentifier(srCertificateTypeSetting::IDENTIFIER_SCORM_TIMING);
    $setting->setEditableIn(array('crs'));
    $setting->setValue(0);
    $setting->save();
}
?>
<#17>
     <?php 
require_once './Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/Certificate/classes/Definition/class.srCertificateDefinition.php';
srCertificateDefinition::updateDB();
// Migrate from signature table
global $ilDB;
if ($ilDB->tableExists('cert_signature_def')) {
    $set = $ilDB->query('SELECT * FROM cert_signature_def');
    while ($row = $ilDB->fetchObject($set)) {
 /**
  * @param \srCertificateType $type
  */
 public function setCertificateType($type)
 {
     $this->type = $type;
     $this->type_id = $type->getId();
 }