ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLearningHistoryService Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilLearningHistoryService:

Public Member Functions

 __construct (ilObjUser $user, ilLanguage $lng, \ILIAS\DI\UIServices $ui, ilAccessHandler $access, ilTree $tree)
 
 request ()
 
 repositoryTree ()
 
 access ()
 
 user ()
 
 language ()
 
 ui ()
 
 factory ()
 Factory for learning history entries. More...
 
 provider ()
 
 isActive (int $user_id=0)
 Is the service active? The service will be active, if any of its providers are active. More...
 

Protected Attributes

ilObjUser $current_user
 
ilLanguage $lng
 
ILIAS DI UIServices $ui
 
ilAccessHandler $access
 
ilTree $tree
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Learning history service

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilLearningHistoryService.php.

Constructor & Destructor Documentation

◆ __construct()

ilLearningHistoryService::__construct ( ilObjUser  $user,
ilLanguage  $lng,
\ILIAS\DI\UIServices  $ui,
ilAccessHandler  $access,
ilTree  $tree 
)

Definition at line 31 of file class.ilLearningHistoryService.php.

References $access, $lng, $tree, $ui, access(), ILIAS\Repository\lng(), and ui().

+ Here is the call graph for this function:

Member Function Documentation

◆ access()

ilLearningHistoryService::access ( )

Definition at line 60 of file class.ilLearningHistoryService.php.

61 {
62 return $this->access;
63 }
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...

References $access.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ factory()

ilLearningHistoryService::factory ( )

Factory for learning history entries.

Definition at line 83 of file class.ilLearningHistoryService.php.

84 {
85 return new ilLearningHistoryFactory($this);
86 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ isActive()

ilLearningHistoryService::isActive ( int  $user_id = 0)

Is the service active? The service will be active, if any of its providers are active.

Definition at line 96 of file class.ilLearningHistoryService.php.

96 : bool
97 {
98 global $DIC;
99
100 $setting = $DIC->settings();
101 if ($setting->get("enable_learning_history") !== "1") {
102 return false;
103 }
104
105 if ($user_id === 0) {
106 $user_id = $this->user()->getId();
107 }
108
109 return count($this->provider()->getAllProviders(true, $user_id)) > 0;
110 }
global $DIC
Definition: shib_login.php:26

References $DIC, $user_id, provider(), and user().

+ Here is the call graph for this function:

◆ language()

ilLearningHistoryService::language ( )

Definition at line 70 of file class.ilLearningHistoryService.php.

71 {
72 return $this->lng;
73 }
language handling

References $lng.

◆ provider()

ilLearningHistoryService::provider ( )

Definition at line 88 of file class.ilLearningHistoryService.php.

89 {
90 return new ilLearningHistoryProviderFactory($this);
91 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by isActive().

+ Here is the caller graph for this function:

◆ repositoryTree()

ilLearningHistoryService::repositoryTree ( )

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

55 : ilTree
56 {
57 return $this->tree;
58 }
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...

References $tree.

◆ request()

ilLearningHistoryService::request ( )

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

46 {
47 global $DIC;
48
49 return new \ILIAS\LearningHistory\StandardGUIRequest(
50 $DIC->http(),
51 $DIC->refinery()
52 );
53 }

References $DIC.

◆ ui()

ilLearningHistoryService::ui ( )

Definition at line 75 of file class.ilLearningHistoryService.php.

76 {
77 return $this->ui;
78 }
Provides fluid interface to RBAC services.
Definition: UIServices.php:25

References $ui.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ user()

ilLearningHistoryService::user ( )

Definition at line 65 of file class.ilLearningHistoryService.php.

References $current_user.

Referenced by isActive().

+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilLearningHistoryService::$access
protected

Definition at line 28 of file class.ilLearningHistoryService.php.

Referenced by __construct(), and access().

◆ $current_user

ilObjUser ilLearningHistoryService::$current_user
protected

Definition at line 25 of file class.ilLearningHistoryService.php.

Referenced by user().

◆ $lng

ilLanguage ilLearningHistoryService::$lng
protected

Definition at line 26 of file class.ilLearningHistoryService.php.

Referenced by __construct(), and language().

◆ $tree

ilTree ilLearningHistoryService::$tree
protected

Definition at line 29 of file class.ilLearningHistoryService.php.

Referenced by __construct(), and repositoryTree().

◆ $ui

ILIAS DI UIServices ilLearningHistoryService::$ui
protected

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

Referenced by __construct(), and ui().


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