33 $this->user_id = $a_user_id;
34 $this->action_context = $a_context;
45 if (!isset(self::$instances[$a_user_id])) {
49 return self::$instances[$a_user_id];
60 $prov->setUserId($this->user_id);
61 $coll = $prov->collectActionsForTargetUser($a_target_user);
62 foreach ($coll->getActions() as $action) {
64 $this->action_context->getComponentId(),
65 $this->action_context->getContextId(),
66 $prov->getComponentId(),
69 $this->collection->addAction($action);
81 $this->action_context->getComponentId(),
82 $this->action_context->getContextId(),
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getAllProviders()
Get all action providers.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(int $a_user_id, ilUserActionContext $a_context)
Get instance (for a user)
getActionsForTargetUser(int $a_target_user)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
hasProviderActiveActions(ilUserActionProvider $prov)
__construct(int $a_user_id, ilUserActionContext $a_context)
ilUserActionCollection $collection
static lookupActive(string $a_context_comp, string $a_context_id, string $a_action_comp, string $a_action_type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilUserActionContext $action_context