ILIAS  release_7 Revision v7.30-3-g800a261c036
ilFirstLoginLearningHistoryProvider Class Reference

Learning history provider: First Login. More...

+ Inheritance diagram for ilFirstLoginLearningHistoryProvider:
+ Collaboration diagram for ilFirstLoginLearningHistoryProvider:

Public Member Functions

 isActive ()
 Is active?
Returns
bool
More...
 
 getEntries ($ts_start, $ts_end)
 Get entries.
Parameters
int$ts_start
int$ts_end
Returns
ilLearningHistoryEntry[]
More...
 
 getName ()
 Get name of provider (in user language)
Returns
string
More...
 
- Public Member Functions inherited from ilAbstractLearningHistoryProvider
 __construct ( $user_id, ilLearningHistoryFactory $factory, ilLanguage $lng, ilTemplate $template=null)
 Constructor. More...
 
 isActive ()
 Is active? More...
 
 getEntries ($ts_start, $ts_end)
 Get entries. More...
 
 getName ()
 Get name of provider (in user language) More...
 

Additional Inherited Members

- Protected Member Functions inherited from ilAbstractLearningHistoryProvider
 getUserId ()
 Get user id. More...
 
 getFactory ()
 Get factory. More...
 
 getLanguage ()
 Get language object. More...
 
 getEmphasizedTitle ($title)
 Get emphasized title. More...
 
- Protected Attributes inherited from ilAbstractLearningHistoryProvider
 $user_id
 
 $factory
 
 $lng
 

Detailed Description

Learning history provider: First Login.

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

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

Member Function Documentation

◆ getEntries()

ilFirstLoginLearningHistoryProvider::getEntries (   $ts_start,
  $ts_end 
)

Get entries.

Parameters
int$ts_start
int$ts_end
Returns
ilLearningHistoryEntry[]

Implements ilLearningHistoryProviderInterface.

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

26 {
27 $entries = [];
29 if ($ts != "") {
30 $ts = new ilDateTime($ts, IL_CAL_DATETIME);
31 $ts = $ts->get(IL_CAL_UNIX);
32
33 $lng = $this->getLanguage();
34 $lng->loadLanguageModule("lhist");
35
36 $text1 = $lng->txt("lhist_first_login");
37 $entries[] = $this->getFactory()->entry(
38 $text1,
39 $text1,
40 ilUtil::getImagePath("icon_rate_on_user.svg"),
41 $ts,
42 0
43 );
44 }
45 return $entries;
46 }
const IL_CAL_UNIX
const IL_CAL_DATETIME
@classDescription Date and time handling
static _lookupFirstLogin($a_user_id)
lookup first login
static getImagePath($img, $module_path="", $mode="output", $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, and IL_CAL_UNIX.

+ Here is the call graph for this function:

◆ getName()

ilFirstLoginLearningHistoryProvider::getName ( )

Get name of provider (in user language)

Returns
string

Implements ilLearningHistoryProviderInterface.

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

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

References ilAbstractLearningHistoryProvider\$lng, and ilAbstractLearningHistoryProvider\getLanguage().

+ Here is the call graph for this function:

◆ isActive()

ilFirstLoginLearningHistoryProvider::isActive ( )

Is active?

Returns
bool

Implements ilLearningHistoryProviderInterface.

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

18 {
19 return true;
20 }

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