46 $this->tpl = $a_global_tpl;
47 $this->user_action_context = $a_user_action_context;
48 $this->current_user_id = $a_current_user_id;
61 return new ilUserActionGUI($a_user_action_context, $a_global_tpl, $a_current_user_id);
71 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdmin.php");
72 include_once(
"./Services/User/Actions/classes/class.ilUserActionProviderFactory.php");
74 foreach ($prov->getActionTypes() as $act_type =>
$txt) {
76 $this->user_action_context->getComponentId(),
77 $this->user_action_context->getContextId(),
78 $prov->getComponentId(),
81 foreach ($prov->getJsScripts($act_type) as $script) {
82 $tpl->addJavascript($script);
97 if (!$this->init_done) {
100 include_once(
"./Services/User/Gallery/classes/class.ilGalleryUserActionContext.php");
101 include_once(
"./Services/User/Actions/classes/class.ilUserActionCollector.php");
103 $action_collection = $act_collector->getActionsForTargetUser($a_target_user_id);
104 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
106 $list->setListTitle(
"");
107 foreach ($action_collection->getActions() as
$action) {
108 $list->addItem(
$action->getText(),
"",
$action->getHref(),
"",
"",
"",
"",
false,
"",
"",
"",
"",
true,
$action->getData());
110 return $list->getHTML();
if(isset($_REQUEST['delete'])) $list
static getAllProviders()
Get all action providers.
static getInstance($a_user_id, ilUserActionContext $a_context)
Get instance (for a user)
A class that provides a collection of actions on users.
static lookupActive($a_context_comp, $a_context_id, $a_action_comp, $a_action_type)
Is activated?
static getInstance(ilUserActionContext $a_user_action_context, ilTemplate $a_global_tpl, $a_current_user_id)
Get instance.
renderDropDown($a_target_user_id)
Render drop down.
A context where user actions are used (e.g.
special template class to simplify handling of ITX/PEAR
User interface class for advanced drop-down selection lists.
init()
Add requried js for an action context.
__construct(ilUserActionContext $a_user_action_context, ilTemplate $a_global_tpl, $a_current_user_id)
Constructor.