ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
12{
18 protected $user_id;
19
23 protected $factory;
24
28 protected $lng;
29
33 private $template;
34
42 public function __construct(
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 }
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}
An exception for terminatinating execution or to throw for unit testing.
__construct( $user_id, ilLearningHistoryFactory $factory, ilLanguage $lng, ilTemplate $template=null)
Constructor.
language handling
special template class to simplify handling of ITX/PEAR