53         string $export_format,
    64         Closure $additional_content_collector
    69         $this->ui_factory = $DIC->ui()->factory();
    88         $this->requested_obj_id = $request->getObjId();
    89         $this->requested_ref_id = $request->getRefId();
    90         $this->
lng->loadLanguageModule(
"lm");
   102         $content_active = ($this->active_tab === 
"content");
   104         if (!$this->lm->isActiveLMMenu()) {
   111         if ($this->offline) {
   116         if (!$this->offline && $ilAccess->checkAccess(
"read", 
"", $this->requested_ref_id)) {
   117             $ilCtrl->setParameterByClass(
"illmpresentationgui", 
"obj_id", $this->requested_obj_id);
   118             if (!$content_active) {
   120                     $this->ui_factory->button()->standard($this->
lng->txt(
"content"), $ilCtrl->getLinkTargetByClass(
"illmpresentationgui", 
"layout"))
   123         } elseif ($this->offline) {
   124             $tabs_gui->setForcePresentationOfSingleTab(
true);
   127         if (!$content_active) {
   132         if ($this->lm->isInfoEnabled()) {
   133             if (!$this->offline) {
   134                 $ilCtrl->setParameterByClass(
"illmpresentationgui", 
"obj_id", $this->requested_obj_id);
   135                 $link = $this->
ctrl->getLinkTargetByClass(
   136                     array(
"illmpresentationgui", 
"ilinfoscreengui"),
   144                     $this->ui_factory->button()->shy($this->
lng->txt(
"info_short"), $link);
   147         if (!$this->offline &&
   148             $ilAccess->checkAccess(
"read", 
"", $this->requested_ref_id) && 
   153                     $this->ui_factory->button()->standard(
   154                         $this->
lng->txt(
"learning_progress"),
   155                         $this->
ctrl->getLinkTargetByClass(array(
"illmpresentationgui", 
"illearningprogressgui"), 
"")
   160                     $this->ui_factory->button()->standard(
   161                         $this->
lng->txt(
"learning_progress"),
   162                         $this->
ctrl->getLinkTargetByClass(array(
"illmpresentationgui", 
"illearningprogressgui"), 
"editManual")
   176         $menu = new \ILIAS\LearningModule\Menu\ilLMMenuGUI($this->lm_pres_service);
   177         foreach ($menu->getEntries() as $entry) {
   178             if (is_object($entry[
"signal"])) {
   179                 if ($this->lm_pres_service->getPresentationStatus()->getEmbedMode()) {
   181                         $this->ui_factory->button()->standard($entry[
"label"], 
'')
   182                                          ->withOnClick($entry[
"signal"])
   185                     $actions[] = $this->ui_factory->button()->shy($entry[
"label"], 
'')
   186                                                             ->withOnClick($entry[
"signal"]);
   189             if (is_object($entry[
"modal"])) {
   192             if ($entry[
"on_load"] != 
"") {
   193                 $this->main_tpl->addOnLoadCode($entry[
"on_load"]);
   198         if (!$this->offline) {
   199             if ($ilAccess->checkAccess(
"write", 
"", $this->requested_ref_id)) {
   201                 if ($this->current_page > 0) {
   202                     $actions[] = $this->ui_factory->button()->shy(
   203                         $this->
lng->txt(
"edit_page"),
   204                         ILIAS_HTTP_PATH . 
"/ilias.php?baseClass=ilLMEditorGUI&ref_id=" . $this->requested_ref_id .
   205                         "&obj_id=" . $this->current_page . 
"&to_page=1"   208                 $actions[] = $this->ui_factory->button()->shy(
   209                     $this->
lng->txt(
"lm_edit_chapters"),
   210                     $this->
ctrl->getLinkTargetByClass([
"ilLMEditorGUI", 
"ilobjlearningmodulegui"], 
"chapters")
   212                 $actions[] = $this->ui_factory->button()->shy(
   213                     $this->
lng->txt(
"lm_edit_lm_settings"),
   214                     $this->
ctrl->getLinkTargetByClass([
"ilLMEditorGUI", 
"ilobjlearningmodulegui"], 
"properties")
   218         if (count($actions) > 0) {
   220                 $this->ui_factory->dropdown()->standard($actions)
   224         return $tabs_gui->$getcmd();
 
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...
 
const LP_MODE_COLLECTION_MANUAL
 
static checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress 
 
setSetupMode(bool $a_val)
 
static getInstance(int $obj_id)
 
Main service init and factory.