ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilUserActionProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
29 protected int $user_id;
30 protected Language $lng;
31 protected ilDBInterface $db;
32
33 public function __construct()
34 {
35 global $DIC;
36
37 $this->lng = $DIC->language();
38 $this->db = $DIC->database();
39 }
40
41 public function setUserId(int $a_val): void
42 {
43 $this->user_id = $a_val;
44 }
45
46 public function getUserId(): int
47 {
48 return $this->user_id;
49 }
50
54 abstract public function collectActionsForTargetUser(int $a_target_user): ilUserActionCollection;
55
59 abstract public function getComponentId(): string;
60
64 abstract public function getActionTypes(): array;
65
66 public function getJsScripts(string $a_action_type): array
67 {
68 return [];
69 }
70}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A class that provides a collection of actions on users.
getJsScripts(string $a_action_type)
collectActionsForTargetUser(int $a_target_user)
Collect actions for a target user.
Interface ilDBInterface.
global $DIC
Definition: shib_login.php:26