3 declare(strict_types=1);
13 public static function switchTemplate(
int $a_ref_id,
int $a_new_tpl_id): bool
17 $logger = $DIC->logger()->otpl();
21 $logger->debug(
'Current template id: ' . $current_tpl_id);
23 if ($current_tpl_id) {
24 $logger->debug(
'Reverting template with id: ' . $current_tpl_id);
26 $action->setRefId($a_ref_id);
33 $obj->applyDidacticTemplate($a_new_tpl_id);
static switchTemplate(int $a_ref_id, int $a_new_tpl_id)
Utilities for didactic templates.
static lookupTemplateId(int $a_ref_id)
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
static getActionsByTemplateId(int $a_tpl_id)
Get actions of one template.