ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilUserUserActionProvider Class Reference

Adds link to profile. More...

+ Inheritance diagram for ilUserUserActionProvider:
+ Collaboration diagram for ilUserUserActionProvider:

Public Member Functions

 getComponentId ()
 
 getActionTypes ()
 
 collectActionsForTargetUser ($a_target_user)
 Collect all actions. More...
 
- Public Member Functions inherited from ilUserActionProvider
 __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 ()
 

Additional Inherited Members

- Protected Attributes inherited from ilUserActionProvider
 $user_id
 
 $lng
 
 $db
 

Detailed Description

Adds link to profile.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 14 of file class.ilUserUserActionProvider.php.

Member Function Documentation

◆ collectActionsForTargetUser()

ilUserUserActionProvider::collectActionsForTargetUser (   $a_target_user)

Collect all actions.

Parameters
int$a_target_usertarget user
Returns
ilUserActionCollection collection

Definition at line 40 of file class.ilUserUserActionProvider.php.

References ilObjUser\_lookupPref(), array, and ilUserActionCollection\getInstance().

41  {
43  include_once("./Services/User/Actions/classes/class.ilUserAction.php");
44 
45  if (!in_array(ilObjUser::_lookupPref($a_target_user, "public_profile"),
46  array("y", "g")))
47  {
48  return $coll;
49  }
50 
51  $f = new ilUserAction();
52  $f->setType("profile");
53  $f->setText($this->lng->txt('profile'));
54  $f->setHref("./goto.php?target=usr_".$a_target_user);
55  $coll->addAction($f);
56 
57  return $coll;
58  }
static getInstance()
Get instance.
Create styles array
The data for the language used.
static _lookupPref($a_usr_id, $a_keyword)
Action that can be performed on a user.
+ Here is the call graph for this function:

◆ getActionTypes()

ilUserUserActionProvider::getActionTypes ( )

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

References array.

28  {
29  return array(
30  "profile" => $this->lng->txt("profile")
31  );
32  }
Create styles array
The data for the language used.

◆ getComponentId()

ilUserUserActionProvider::getComponentId ( )

Definition at line 19 of file class.ilUserUserActionProvider.php.

20  {
21  return "user";
22  }

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