ILIAS  release_7 Revision v7.30-3-g800a261c036
ilAbstractLearningHistoryProvider Class Reference

Abstract learning history provider. More...

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

Public Member Functions

 __construct ( $user_id, ilLearningHistoryFactory $factory, ilLanguage $lng, ilTemplate $template=null)
 Constructor. More...
 

Protected Member Functions

 getUserId ()
 Get user id. More...
 
 getFactory ()
 Get factory. More...
 
 getLanguage ()
 Get language object. More...
 
 getEmphasizedTitle ($title)
 Get emphasized title. More...
 

Protected Attributes

 $user_id
 
 $factory
 
 $lng
 

Private Attributes

 $template
 

Detailed Description

Abstract learning history provider.

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

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Parameters
int$user_id
ilLearningHistoryFactory$factory
ilLanguage$lng
ilTemplate | null$template

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

47 {
48 $this->user_id = $user_id;
49 $this->factory = $factory;
50 $this->lng = $lng;
51
52 if ($template === null) {
54 'tpl.emphasized_title.php',
55 true,
56 true,
57 'Services/LearningHistory'
58 );
59 }
60 $this->template = $template;
61 }
special template class to simplify handling of ITX/PEAR

References $factory, $lng, $template, and $user_id.

Member Function Documentation

◆ getEmphasizedTitle()

ilAbstractLearningHistoryProvider::getEmphasizedTitle (   $title)
protected

Get emphasized title.

Parameters
string
Returns
string

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

101 {
102 $clone = clone $this->template;
103 $clone->setVariable("TITLE", $title);
104 return $clone->get();
105 }

References $template.

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

+ Here is the caller graph for this function:

◆ getFactory()

ilAbstractLearningHistoryProvider::getFactory ( )
protected

◆ getLanguage()

◆ getUserId()

ilAbstractLearningHistoryProvider::getUserId ( )
protected

Field Documentation

◆ $factory

ilAbstractLearningHistoryProvider::$factory
protected

◆ $lng

◆ $template

◆ $user_id

ilAbstractLearningHistoryProvider::$user_id
protected

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