21 $this->tpl_id = $a_tpl_id;
32 $query =
'SELECT title FROM didactic_tpl_settings '.
33 'WHERE title = '.$ilDB->quote($a_orig_title,
'text');
46 return $a_orig_title.
' '.
$GLOBALS[
'lng']->txt(
'copy_of_suffix');
48 return $a_orig_title.
' '.sprintf(
$GLOBALS[
'lng']->txt(
'copy_n_of_suffix'),$num);
80 $this->new_tpl_id = $copy->getId();
82 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateActionFactory.php';
90 $trans = $orig->getTranslationObject();
91 $copy_trans = $trans->copy($this->new_tpl_id);
92 $copy_trans->addLanguage($trans->getDefaultLanguage(),$copy->getTitle(), $copy->getDescription(),
true,
true);
__construct($a_tpl_id)
Constructor.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
getNewTemplateId()
Get new template id.
getTemplateId()
Get template id.
static appendCopyInfo($a_orig_title)
Copy a didactic template and all subitems.
static getActionsByTemplateId($a_tpl_id)
Get actions of one template.