Collects actions from all action providers.
More...
Collects actions from all action providers.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 12 of file class.ilUserActionCollector.php.
◆ __construct()
◆ getActionsForTargetUser()
ilUserActionCollector::getActionsForTargetUser |
( |
|
$a_target_user | ) |
|
Collect actions.
- Returns
- ilUserActionCollection action
Definition at line 65 of file class.ilUserActionCollector.php.
References $action, $collection, ilUserActionProviderFactory\getAllProviders(), ilUserActionCollection\getInstance(), and ilUserActionAdmin\lookupActive().
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 lookupActive($a_context_comp, $a_context_id, $a_action_comp, $a_action_type)
Is activated?
◆ getInstance()
◆ $action_context
ilUserActionCollector::$action_context |
|
protected |
◆ $collection
ilUserActionCollector::$collection |
|
protected |
◆ $instances
ilUserActionCollector::$instances = array() |
|
staticprotected |
◆ $user_id
ilUserActionCollector::$user_id |
|
protected |
The documentation for this class was generated from the following file: