3 declare(strict_types=1);
22 return self::TYPE_LOCAL_ROLE;
27 $this->role_template_id = $a_role_template_id;
43 $this->admin->assignRoleToFolder($role->getId(),
$source->getRefId(),
"y");
55 'Copy role template permissions ' .
58 'role_id: ' . $role->getId() .
' ' .
59 'role_parent: ' .
$source->getRefId()
62 $this->admin->copyRoleTemplatePermissions(
70 $ops = $this->review->getOperationsOfRole($role->getId(),
$source->getType(),
$source->getRefId());
71 $this->admin->grantPermission($role->getId(), $ops,
$source->getRefId());
86 if (!parent::save()) {
90 $query =
'INSERT INTO didactic_tpl_alr (action_id,role_template_id) ' .
92 $this->db->quote($this->
getActionId(),
'integer') .
', ' .
100 public function delete():
void 104 $query =
'DELETE FROM didactic_tpl_alr ' .
105 'WHERE action_id = ' . $this->db->quote($this->
getActionId(),
'integer');
106 $this->db->manipulate(
$query);
126 $writer->
appendXML($exp->xmlDumpMem(
false));
134 $query =
'SELECT * FROM didactic_tpl_alr ' .
135 'WHERE action_id = ' . $this->db->quote($this->
getActionId(),
'integer');
__construct(int $a_action_id=0)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
appendXML(string $a_str)
append xml string to document
setRoleTemplateId(int $a_role_template_id)
xmlEndTag(string $tag)
Writes an endtag.
static _lookupTitle(int $obj_id)
toXml(ilXmlWriter $writer)
static _lookupDescription(int $obj_id)
represents a creation of local roles action
Abstract class for template actions.
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
static _lookupType(int $id, bool $reference=false)