ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFirstLoginLearningHistoryProvider.php
Go to the documentation of this file.
1<?php
2
24{
25 public function isActive(): bool
26 {
27 return true;
28 }
29
30 public function getEntries(int $ts_start, int $ts_end): 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 }
52
53 public function getName(): string
54 {
55 $lng = $this->getLanguage();
56 $lng->loadLanguageModule("lhist");
57
58 return $lng->txt("lhist_first_login");
59 }
60}
const IL_CAL_UNIX
const IL_CAL_DATETIME
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
@classDescription Date and time handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...