Learning history main GUI class.
More...
Learning history main GUI class.
- Author
- Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Definition at line 25 of file class.ilLearningHistoryGUI.php.
◆ __construct()
ilLearningHistoryGUI::__construct |
( |
| ) |
|
◆ executeCommand()
ilLearningHistoryGUI::executeCommand |
( |
| ) |
|
◆ getEmbeddedHTML()
ilLearningHistoryGUI::getEmbeddedHTML |
( |
?int |
$from = null , |
|
|
?int |
$to = null , |
|
|
?array |
$classes = null , |
|
|
?string |
$a_mode = null |
|
) |
| |
◆ getHistoryHtml()
ilLearningHistoryGUI::getHistoryHtml |
( |
?int |
$from = null , |
|
|
?int |
$to = null , |
|
|
?array |
$classes = null , |
|
|
?string |
$mode = null |
|
) |
| |
|
protected |
Get history html.
Definition at line 158 of file class.ilLearningHistoryGUI.php.
References $ctrl, Vendor\Package\$e, $from, $to, $tpl, ILIAS\Repository\access(), ilTimelineGUI\getInstance(), ilCtrl\isAsynch(), renderButton(), and ILIAS\Repository\ui().
Referenced by getHTML(), and show().
164 $tpl =
new ilTemplate(
"tpl.timeline.html",
true,
true,
"Services/LearningHistory");
166 $tpl->setVariable(
"TIMELINE", $this->renderTimeline(
$from,
$to, $classes, $mode));
168 if ($this->show_more && $mode !==
"print") {
169 $tpl->setCurrentBlock(
"show_more");
171 $tpl->parseCurrentBlock();
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ getHTML()
ilLearningHistoryGUI::getHTML |
( |
array |
$par | ) |
|
◆ renderAsync()
ilLearningHistoryGUI::renderAsync |
( |
| ) |
|
|
protected |
◆ renderButton()
ilLearningHistoryGUI::renderButton |
( |
| ) |
|
|
protected |
Definition at line 226 of file class.ilLearningHistoryGUI.php.
References $ctrl, Vendor\Package\$f, $id, $url, ilCtrl\getLinkTarget(), ilCtrl\isAsynch(), ILIAS\Repository\lng(), ilCtrl\setParameter(), ILIAS\Repository\ui(), and ILIAS\UI\Implementation\Component\Button\withLoadingAnimationOnClick().
Referenced by getHistoryHtml(), and renderAsync().
229 $f = $this->
ui->factory();
230 $renderer = $this->
ui->renderer();
234 $button =
$f->button()->standard($this->
lng->txt(
"lhist_show_more"),
"")
236 ->withOnLoadCode(
static function (
$id) use (
$url):
string {
237 return "il.LearningHistory.initShowMore('$id', '" .
$url .
"');";
240 return $renderer->renderAsync($button);
243 return $renderer->render($button);
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
◆ send()
ilLearningHistoryGUI::send |
( |
string |
$output | ) |
|
|
protected |
◆ setUserId()
ilLearningHistoryGUI::setUserId |
( |
int |
$user_id | ) |
|
◆ show()
ilLearningHistoryGUI::show |
( |
| ) |
|
|
protected |
Definition at line 95 of file class.ilLearningHistoryGUI.php.
References Vendor\Package\$f, $lng, $main_tpl, getHistoryHtml(), ilGlobalTemplateInterface\setContent(), ilLanguage\txt(), and ILIAS\Repository\ui().
99 $f = $this->
ui->factory();
100 $renderer = $this->
ui->renderer();
109 $f->messageBox()->info(
$lng->
txt(
"lhist_no_entries"))
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...
getHistoryHtml(?int $from=null, ?int $to=null, ?array $classes=null, ?string $mode=null)
Get history html.
setContent(string $a_html)
Sets content for standard template.
ilGlobalTemplateInterface $main_tpl
◆ $access
◆ $certificateSettings
ilSetting ilLearningHistoryGUI::$certificateSettings |
|
protected |
◆ $ctrl
ilCtrl ilLearningHistoryGUI::$ctrl |
|
protected |
◆ $from
int ilLearningHistoryGUI::$from |
|
protected |
◆ $http
ILIAS HTTP Services ilLearningHistoryGUI::$http |
|
protected |
◆ $last_ts
int ilLearningHistoryGUI::$last_ts = 0 |
|
protected |
◆ $lhist_service
◆ $lng
◆ $main_tpl
◆ $show_more
bool ilLearningHistoryGUI::$show_more = false |
|
protected |
◆ $tabs
◆ $to
int ilLearningHistoryGUI::$to |
|
protected |
◆ $ui
ILIAS DI UIServices ilLearningHistoryGUI::$ui |
|
protected |
◆ $user_id
int ilLearningHistoryGUI::$user_id |
|
protected |
◆ MAX
const ilLearningHistoryGUI::MAX = 50 |
◆ TAB_ID_LEARNING_HISTORY
const ilLearningHistoryGUI::TAB_ID_LEARNING_HISTORY = 'lhist_learning_history' |
◆ TAB_ID_MY_CERTIFICATES
const ilLearningHistoryGUI::TAB_ID_MY_CERTIFICATES = 'certificates' |
The documentation for this class was generated from the following file: