ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilAbstractLearningHistoryProvider.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11
abstract
class
ilAbstractLearningHistoryProvider
12
{
18
protected
$user_id
;
19
23
protected
$factory
;
24
28
protected
$lng
;
29
33
private
$template
;
34
42
public
function
__construct
(
43
$user_id
,
44
ilLearningHistoryFactory
$factory
,
45
ilLanguage
$lng
,
46
ilTemplate
$template
= null
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
}
62
69
protected
function
getUserId
()
70
{
71
return
$this->user_id
;
72
}
73
79
protected
function
getFactory
()
80
{
81
return
$this->factory
;
82
}
83
89
protected
function
getLanguage
()
90
{
91
return
$this->lng
;
92
}
93
100
protected
function
getEmphasizedTitle
(
$title
)
101
{
102
$clone = clone
$this->template
;
103
$clone->setVariable(
"TITLE"
,
$title
);
104
return
$clone->get();
105
}
106
}
ilAbstractLearningHistoryProvider\getFactory
getFactory()
Get factory.
Definition:
class.ilAbstractLearningHistoryProvider.php:79
ilAbstractLearningHistoryProvider\$factory
$factory
Definition:
class.ilAbstractLearningHistoryProvider.php:23
ilAbstractLearningHistoryProvider\getEmphasizedTitle
getEmphasizedTitle($title)
Get emphasized title.
Definition:
class.ilAbstractLearningHistoryProvider.php:100
ilAbstractLearningHistoryProvider\$lng
$lng
Definition:
class.ilAbstractLearningHistoryProvider.php:28
ilAbstractLearningHistoryProvider
Abstract learning history provider.
Definition:
class.ilAbstractLearningHistoryProvider.php:11
ilAbstractLearningHistoryProvider\getUserId
getUserId()
Get user id.
Definition:
class.ilAbstractLearningHistoryProvider.php:69
ilAbstractLearningHistoryProvider\$template
$template
Definition:
class.ilAbstractLearningHistoryProvider.php:33
ilTemplate
special template class to simplify handling of ITX/PEAR
Definition:
class.ilTemplate.php:13
ilAbstractLearningHistoryProvider\getLanguage
getLanguage()
Get language object.
Definition:
class.ilAbstractLearningHistoryProvider.php:89
ilLearningHistoryFactory
Learning history factory.
Definition:
class.ilLearningHistoryFactory.php:11
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
php
$title
$title
Definition:
memcachestat.tpl.php:28
ilAbstractLearningHistoryProvider\__construct
__construct( $user_id, ilLearningHistoryFactory $factory, ilLanguage $lng, ilTemplate $template=null)
Constructor.
Definition:
class.ilAbstractLearningHistoryProvider.php:42
ilAbstractLearningHistoryProvider\$user_id
$user_id
Definition:
class.ilAbstractLearningHistoryProvider.php:18
Services
LearningHistory
interfaces
class.ilAbstractLearningHistoryProvider.php
Generated on Thu Jan 16 2025 19:02:23 for ILIAS by
1.8.13 (using
Doxyfile
)