ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAwarenessWorkspaceFeatureProvider.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{
16 protected $wsp_activated;
17
24 function __construct()
25 {
26 global $lng, $ilSetting;
27
28 $this->wsp_activated = (!$ilSetting->get("disable_personal_workspace"));
29 $lng->loadLanguageModule("wsp");
30 parent::__construct();
31 }
32
33
40 function collectFeaturesForTargetUser($a_target_user)
41 {
42 global $ilCtrl, $lng;
43
45 include_once("./Services/Awareness/classes/class.ilAwarenessFeature.php");
46
47 if (!$this->wsp_activated)
48 {
49 return $coll;
50 }
51
52 $f = new ilAwarenessFeature();
53 $f->setText($lng->txt("wsp_shared_resources"));
54 $ilCtrl->setParameterByClass("ilobjworkspacerootfoldergui", "user", ilObjUser::_lookupLogin($a_target_user));
55 $f->setHref($ilCtrl->getLinkTargetByClass(array("ilpersonaldesktopgui", "ilpersonalworkspacegui", "ilobjworkspacerootfoldergui"),
56 "listSharedResourcesOfOtherUser"));
57
58 //$f->setData(array("test" => "you", "user" => $a_target_user));
59
60 $coll->addFeature($f);
61
62 return $coll;
63 }
64}
65?>
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.
static _lookupLogin($a_user_id)
lookup login
global $ilCtrl
Definition: ilias.php:18
global $ilSetting
Definition: privfeed.php:40