ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

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

47  {
48  $this->user_id = $user_id;
49  $this->factory = $factory;
50  $this->lng = $lng;
51 
52  if ($template === null) {
53  $template = new ilTemplate(
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

Member Function Documentation

◆ getEmphasizedTitle()

ilAbstractLearningHistoryProvider::getEmphasizedTitle (   $title)
protected

Get emphasized title.

Parameters
string
Returns
string

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

References $template, and $title.

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

101  {
102  $clone = clone $this->template;
103  $clone->setVariable("TITLE", $title);
104  return $clone->get();
105  }
+ Here is the caller graph for this function:

◆ getFactory()

◆ getLanguage()

◆ getUserId()

Field Documentation

◆ $factory

ilAbstractLearningHistoryProvider::$factory
protected

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

Referenced by __construct(), and getFactory().

◆ $lng

◆ $template

◆ $user_id

ilAbstractLearningHistoryProvider::$user_id
protected

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