39 $this->user_id = $a_user_id;
40 $this->action_context = $a_context;
53 if (!isset(self::$instances[$a_user_id])) {
57 return self::$instances[$a_user_id];
68 include_once(
"./Services/User/Actions/classes/class.ilUserActionCollection.php");
71 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdmin.php");
73 include_once(
"./Services/User/Actions/classes/class.ilUserActionProviderFactory.php");
75 $prov->setUserId($this->user_id);
76 $coll = $prov->collectActionsForTargetUser($a_target_user);
77 foreach ($coll->getActions() as
$action) {
79 $this->action_context->getComponentId(),
80 $this->action_context->getContextId(),
81 $prov->getComponentId(),
84 $this->collection->addAction(
$action);
static getInstance()
Get instance.
static getAllProviders()
Get all action providers.
static getInstance($a_user_id, ilUserActionContext $a_context)
Get instance (for a user)
static lookupActive($a_context_comp, $a_context_id, $a_action_comp, $a_action_type)
Is activated?
getActionsForTargetUser($a_target_user)
Collect actions.
A context where user actions are used (e.g.
Create styles array
The data for the language used.
__construct($a_user_id, ilUserActionContext $a_context)
Constructor.
Collects actions from all action providers.