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

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

+ Inheritance diagram for ilAbstractLearningHistoryProvider:
+ Collaboration diagram for ilAbstractLearningHistoryProvider:

Public Member Functions

 __construct (int $user_id, ilLearningHistoryFactory $factory, ilLanguage $lng, ?ilTemplate $template=null)
 

Protected Member Functions

 getUserId ()
 
 getFactory ()
 
 getLanguage ()
 
 getEmphasizedTitle (string $title)
 

Protected Attributes

int $user_id
 
ilLearningHistoryFactory $factory
 
ilLanguage $lng
 

Private Attributes

ilTemplate $template
 

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 Abstract learning history provider

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

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

Constructor & Destructor Documentation

◆ __construct()

ilAbstractLearningHistoryProvider::__construct ( int  $user_id,
ilLearningHistoryFactory  $factory,
ilLanguage  $lng,
?ilTemplate  $template = null 
)

Reimplemented in ilSkillLearningHistoryProvider.

Definition at line 30 of file class.ilAbstractLearningHistoryProvider.php.

35 {
36 $this->user_id = $user_id;
37 $this->factory = $factory;
38 $this->lng = $lng;
39
40 if ($template === null) {
42 'tpl.emphasized_title.php',
43 true,
44 true,
45 'components/ILIAS/LearningHistory'
46 );
47 }
48 $this->template = $template;
49 }
factory()
special template class to simplify handling of ITX/PEAR

References $factory, $lng, $template, $user_id, factory(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getEmphasizedTitle()

ilAbstractLearningHistoryProvider::getEmphasizedTitle ( string  $title)
protected

Definition at line 66 of file class.ilAbstractLearningHistoryProvider.php.

66 : string
67 {
68 $clone = clone $this->template;
69 $clone->setVariable("TITLE", $title);
70 return $clone->get();
71 }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:544

References $template, and HTML_Template_IT\setVariable().

Referenced by ilBadgeLearningHistoryProvider\getEntries(), ilCourseLearningHistoryProvider\getEntries(), and ilSkillLearningHistoryProvider\getEntries().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFactory()

ilAbstractLearningHistoryProvider::getFactory ( )
protected

Definition at line 56 of file class.ilAbstractLearningHistoryProvider.php.

57 {
58 return $this->factory;
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $factory.

Referenced by ilBadgeLearningHistoryProvider\getEntries(), ilCourseLearningHistoryProvider\getEntries(), ilFirstLoginLearningHistoryProvider\getEntries(), ilSkillLearningHistoryProvider\getEntries(), and ilTrackingLearningHistoryProvider\getEntries().

+ Here is the caller graph for this function:

◆ getLanguage()

◆ getUserId()

ilAbstractLearningHistoryProvider::getUserId ( )
protected

Field Documentation

◆ $factory

◆ $lng

◆ $template

◆ $user_id


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