ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAwarenessUserFeatureProvider.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Awareness/classes/class.ilAwarenessFeatureProvider.php");
6
15{
22 function collectFeaturesForTargetUser($a_target_user)
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 }
42}
43?>
A class that provides a collection of features for the awareness tool.
Awareness tool feature (presented in user drop downs) (data object)
collectFeaturesForTargetUser($a_target_user)
Collect all features.
_lookupPref($a_usr_id, $a_keyword)