ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
)

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

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

35  {
36  $this->user_id = $user_id;
37  $this->factory = $factory;
38  $this->lng = $lng;
39 
40  if ($template === null) {
41  $template = new ilTemplate(
42  'tpl.emphasized_title.php',
43  true,
44  true,
45  'Services/LearningHistory'
46  );
47  }
48  $this->template = $template;
49  }
+ 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.

References $template, and HTML_Template_IT\setVariable().

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

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:514
+ 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.

References $factory.

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

57  {
58  return $this->factory;
59  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getLanguage()

◆ getUserId()

Field Documentation

◆ $factory

ilLearningHistoryFactory ilAbstractLearningHistoryProvider::$factory
protected

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

Referenced by __construct(), and getFactory().

◆ $lng

◆ $template

◆ $user_id

int ilAbstractLearningHistoryProvider::$user_id
protected

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

Referenced by __construct(), and getUserId().


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