44 ?array $classes =
null 46 $lng = $this->service->language();
51 $from = (is_null($from))
52 ? time() - (365 * 24 * 60 * 60)
56 foreach ($this->service->provider()->getAllProviders(
true,
$user_id) as
$provider) {
57 if (is_array($classes) && !in_array(get_class(
$provider), $classes,
true)) {
62 $sort_array[] = array(
"entry" =>
$e,
"ts" =>
$e->getTimestamp());
71 if (date(
"Y-m-d", $to) === date(
"Y-m-d")) {
72 if (count($sort_array) === 0 ||
73 date(
"Y-m-d", (current($sort_array)[
"ts"])) !== date(
"Y-m-d")) {
74 $entries[] = $this->service->factory()->entry(
75 $lng->txt(
"lhist_no_entries"),
76 $lng->txt(
"lhist_no_entries"),
85 foreach ($sort_array as $s) {
86 $entries[] = $s[
"entry"];
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getEntries(?int $from=null, ?int $to=null, ?int $user_id=null, ?array $classes=null)
Get entries.
ilLearningHistoryService $service
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
__construct(ilLearningHistoryService $service)
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)