34 $this->rbacreview =
$DIC->rbac()->review();
48 public function delete(
61 return $this->repo->getTemplatesForRoles($role_ids);
66 return $this->repo->getAllAssignmentData();
74 $rbacreview = $this->rbacreview;
75 $global_roles = $rbacreview->getGlobalRoles();
77 foreach ($global_roles as $roleid) {
78 $role_obj = new \ilObjRole($roleid);
79 $roles[$role_obj->getId()] = $role_obj->getTitle();
86 $rbacreview = $this->rbacreview;
88 $role_ids = $rbacreview->assignedRoles(
$user_id);
90 $template_ref_ids = $this->getTemplatesForRoles($role_ids);
92 foreach ($template_ref_ids as $template_ref_id) {
94 $source = new \ilObjPortfolioTemplate($template_ref_id,
true);
96 $target = new \ilObjPortfolio();
97 $target->setTitle($source->getTitle());
100 $target_id = $target->getId();
PortfolioRoleAssignmentDBRepository $repo
add(int $template_ref_id, int $role_id)
assignPortfoliosOnLogin(int $user_id)
getTemplatesForRoles(array $role_ids)
static clonePagesAndSettings(ilObjPortfolioBase $a_source, ilObjPortfolioBase $a_target, ?array $a_recipe=null, bool $copy_all=false)
Build template from portfolio and vice versa.
static _lookupType(int $id, bool $reference=false)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...