ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilAwarenessUserFeatureProvider Class Reference

Adds link to profile feature. More...

+ Inheritance diagram for ilAwarenessUserFeatureProvider:
+ Collaboration diagram for ilAwarenessUserFeatureProvider:

Public Member Functions

 collectFeaturesForTargetUser ($a_target_user)
 Collect all features. More...
 
- Public Member Functions inherited from ilAwarenessFeatureProvider
 __construct ()
 Constructor. More...
 
 setUserId ($a_val)
 Set user id. More...
 
 getUserId ()
 Get user id. More...
 
 collectFeaturesForTargetUser ($a_target_user)
 Collect features for a target user. More...
 

Additional Inherited Members

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

Detailed Description

Adds link to profile feature.

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

Member Function Documentation

◆ collectFeaturesForTargetUser()

ilAwarenessUserFeatureProvider::collectFeaturesForTargetUser (   $a_target_user)

Collect all features.

Parameters
int$a_target_usertarget user
Returns
ilAwarenessUserCollection collection

Reimplemented from ilAwarenessFeatureProvider.

Definition at line 22 of file class.ilAwarenessUserFeatureProvider.php.

23 {
24 global $rbacsystem;
25
27 include_once("./Services/Awareness/classes/class.ilAwarenessFeature.php");
28
29 if (!in_array(ilObjUser::_lookupPref($a_target_user, "public_profile"),
30 array("y", "g")))
31 {
32 return $coll;
33 }
34
35 $f = new ilAwarenessFeature();
36 $f->setText($this->lng->txt('profile'));
37 $f->setHref("./goto.php?target=usr_".$a_target_user);
38 $coll->addFeature($f);
39
40 return $coll;
41 }
Awareness tool feature (presented in user drop downs) (data object)
_lookupPref($a_usr_id, $a_keyword)

References ilObjUser\_lookupPref(), and ilAwarenessFeatureCollection\getInstance().

+ Here is the call graph for this function:

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