ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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...
 

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.

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

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_DATETIME
const IL_CAL_UNIX
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)
+ 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.

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

51  : string
52  {
53  $lng = $this->getLanguage();
54  $lng->loadLanguageModule("lhist");
55 
56  return $lng->txt("lhist_first_login");
57  }
+ 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: