ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilFirstLoginLearningHistoryProvider 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 ilFirstLoginLearningHistoryProvider:
+ Collaboration diagram for ilFirstLoginLearningHistoryProvider:

Public Member Functions

 isActive ()
 
 getEntries (int $ts_start, int $ts_end)
 
 getName ()
 
- Public Member Functions inherited from ilAbstractLearningHistoryProvider
 __construct (int $user_id, ilLearningHistoryFactory $factory, ilLanguage $lng, ?ilTemplate $template=null)
 
 isActive ()
 
 getEntries (int $ts_start, int $ts_end)
 
 getName ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilAbstractLearningHistoryProvider
 getUserId ()
 
 getFactory ()
 
 getLanguage ()
 
 getEmphasizedTitle (string $title)
 
- Protected Attributes inherited from ilAbstractLearningHistoryProvider
int $user_id
 
ilLearningHistoryFactory $factory
 
ilLanguage $lng
 

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 Learning history provider: First Login

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

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

Member Function Documentation

◆ getEntries()

ilFirstLoginLearningHistoryProvider::getEntries ( int  $ts_start,
int  $ts_end 
)

Implements ilLearningHistoryProviderInterface.

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

30 : array
31 {
32 $entries = [];
34 if ($ts !== "") {
35 $ts = new ilDateTime($ts, IL_CAL_DATETIME);
36 $ts = $ts->get(IL_CAL_UNIX);
37
38 $lng = $this->getLanguage();
39 $lng->loadLanguageModule("lhist");
40
41 $text1 = $lng->txt("lhist_first_login");
42 $entries[] = $this->getFactory()->entry(
43 $text1,
44 $text1,
45 ilUtil::getImagePath("standard/icon_rate_on_user.svg"),
46 $ts,
47 0
48 );
49 }
50 return $entries;
51 }
const IL_CAL_UNIX
const IL_CAL_DATETIME
@classDescription Date and time handling
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupFirstLogin(int $a_user_id)
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

References ilAbstractLearningHistoryProvider\$lng, ilObjUser\_lookupFirstLogin(), ilAbstractLearningHistoryProvider\getFactory(), ilUtil\getImagePath(), ilAbstractLearningHistoryProvider\getLanguage(), ilAbstractLearningHistoryProvider\getUserId(), IL_CAL_DATETIME, IL_CAL_UNIX, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ getName()

ilFirstLoginLearningHistoryProvider::getName ( )

Implements ilLearningHistoryProviderInterface.

Definition at line 53 of file class.ilFirstLoginLearningHistoryProvider.php.

53 : string
54 {
55 $lng = $this->getLanguage();
56 $lng->loadLanguageModule("lhist");
57
58 return $lng->txt("lhist_first_login");
59 }

References ilAbstractLearningHistoryProvider\$lng, ilAbstractLearningHistoryProvider\getLanguage(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ isActive()

ilFirstLoginLearningHistoryProvider::isActive ( )

Implements ilLearningHistoryProviderInterface.

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

25 : bool
26 {
27 return true;
28 }

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