4 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateAction.php';
41 $this->role_template_id = $a_role_template_id;
58 global $rbacreview, $rbacadmin;
63 $rolf_id = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
66 $source->createRoleFolder();
68 $rolf_id = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
70 $GLOBALS[
'ilLog']->write(__METHOD__.
': Current role folder id is: '.$rolf_id);
74 $role = $rolf->createRole(
82 $rbacadmin->copyRoleTemplatePermissions(
91 $ops = $rbacreview->getOperationsOfRole($role->getId(),$source->getType(),$rolf->getRefId());
92 $rbacadmin->grantPermission($role->getId(),$ops,$source->getRefId());
116 $query =
'INSERT INTO didactic_tpl_alr (action_id,role_template_id) '.
131 public function delete()
137 $query =
'DELETE FROM didactic_tpl_alr '.
138 'WHERE action_id = '.$ilDB->quote($this->
getActionId(),
'integer');
139 $ilDB->manipulate(
$query);
163 include_once
'./Services/AccessControl/classes/class.ilRoleXmlExport.php';
168 $writer->
appendXML($exp->xmlDumpMem(FALSE));
184 $query =
'SELECT * FROM didactic_tpl_alr '.
185 'WHERE action_id = '.$ilDB->quote($this->
getActionId(),
'integer');