4 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateAction.php';
41 $this->role_template_id = $a_role_template_id;
58 global $rbacreview, $rbacadmin;
66 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
71 $rbacadmin->assignRoleToFolder($role->getId(),$source->getRefId(),
"y");
76 $rbacadmin->copyRoleTemplatePermissions(
85 $ops = $rbacreview->getOperationsOfRole($role->getId(),$source->getType(),$source->getRefId());
86 $rbacadmin->grantPermission($role->getId(),$ops,$source->getRefId());
110 $query =
'INSERT INTO didactic_tpl_alr (action_id,role_template_id) '.
125 public function delete()
131 $query =
'DELETE FROM didactic_tpl_alr '.
132 'WHERE action_id = '.$ilDB->quote($this->
getActionId(),
'integer');
133 $ilDB->manipulate(
$query);
157 include_once
'./Services/AccessControl/classes/class.ilRoleXmlExport.php';
162 $writer->
appendXML($exp->xmlDumpMem(FALSE));
178 $query =
'SELECT * FROM didactic_tpl_alr '.
179 'WHERE action_id = '.$ilDB->quote($this->
getActionId(),
'integer');