ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUserActionProvider Class Reference

A class that provides a collection of actions on users. More...

+ Inheritance diagram for ilUserActionProvider:
+ Collaboration diagram for ilUserActionProvider:

Public Member Functions

 __construct ()
 Constructor. More...
 
 setUserId ($a_val)
 Set user id. More...
 
 getUserId ()
 Get user id. More...
 
 collectActionsForTargetUser ($a_target_user)
 Collect actions for a target user. More...
 
 getComponentId ()
 
 getActionTypes ()
 
 getJsScripts ($a_action_type)
 Get js scripts. More...
 

Protected Attributes

 $user_id
 
 $lng
 
 $db
 

Detailed Description

A class that provides a collection of actions on users.

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.ilUserActionProvider.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserActionProvider::__construct ( )

Constructor.

Definition at line 32 of file class.ilUserActionProvider.php.

References $DIC.

33  {
34  global $DIC;
35 
36  $this->lng = $DIC->language();
37  $this->db = $DIC->database();
38  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ collectActionsForTargetUser()

ilUserActionProvider::collectActionsForTargetUser (   $a_target_user)
abstract

Collect actions for a target user.

Parameters
int$a_target_usertarget user
Returns
ilUserActionCollection collection of users

Referenced by getUserId().

+ Here is the caller graph for this function:

◆ getActionTypes()

ilUserActionProvider::getActionTypes ( )
abstract
Returns
array[string] keys must be unique action ids (strings), values should be the names of the actions (from ilLanguage)

Referenced by getUserId().

+ Here is the caller graph for this function:

◆ getComponentId()

ilUserActionProvider::getComponentId ( )
abstract
Returns
string component id as defined in services.xml/module.xml

Referenced by getUserId().

+ Here is the caller graph for this function:

◆ getJsScripts()

ilUserActionProvider::getJsScripts (   $a_action_type)

Get js scripts.

Parameters
string$a_action_type
Returns
array

Definition at line 84 of file class.ilUserActionProvider.php.

References array.

85  {
86  return array();
87  }
Create styles array
The data for the language used.

◆ getUserId()

ilUserActionProvider::getUserId ( )

Get user id.

Returns
int user id

Definition at line 55 of file class.ilUserActionProvider.php.

References $user_id, collectActionsForTargetUser(), getActionTypes(), and getComponentId().

Referenced by ilContactUserActionProvider\collectActionsForTargetUser(), ilMailUserActionProvider\collectActionsForTargetUser(), and ilChatUserActionProvider\collectActionsForTargetUser().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUserId()

ilUserActionProvider::setUserId (   $a_val)

Set user id.

Parameters
int$a_valuser id

Definition at line 45 of file class.ilUserActionProvider.php.

46  {
47  $this->user_id = $a_val;
48  }

Field Documentation

◆ $db

ilUserActionProvider::$db
protected

Definition at line 27 of file class.ilUserActionProvider.php.

◆ $lng

ilUserActionProvider::$lng
protected

◆ $user_id

ilUserActionProvider::$user_id
protected

Definition at line 17 of file class.ilUserActionProvider.php.

Referenced by getUserId().


The documentation for this class was generated from the following file: