19 declare(strict_types=1);
    35         protected int $usr_id,
    42         protected ILIAS\
UI\Renderer $renderer,
    48         protected string $intro,
    49         protected string $extro,
    56         $cmd = $this->
ctrl->getCmd();
    58             case self::CMD_STANDARD:
    64                 $this->
ctrl->redirect($this, self::CMD_VIEW);
    66             case self::CMD_UNSUBSCRIBE:
    67                 if ($this->launchlinks_builder->currentUserMayUnparticipate()) {
    68                     $this->roles->leave($this->usr_id);
    70                 $this->
ctrl->redirect($this, self::CMD_STANDARD);
    78                     "ilObjLearningSequenceLearnerGUI: " .
    79                     "Command not supported: $cmd"    84     protected function view(
string $cmd): void
    90         $this->tpl->setContent($content);
    93         if (!str_contains($content, $element)) {
    98         if (!str_contains($content, $element)) {
    99             $curriculum = $this->curriculum_builder->getLearnerCurriculum();
   100             $this->tpl->setRightContent(
   108         $admins = $this->roles->getLearningSequenceAdminIds();
   109         if (!in_array($usr_id, $admins)) {
   110             $this->roles->join($usr_id);
   116         foreach ($this->launchlinks_builder->getLinks() as $entry) {
   117             list($label, $link, $primary) = $entry;
   120                 $btn = $this->ui_factory->button()->primary($label, $link);
   122                 $btn = $this->ui_factory->button()->standard($label, $link);
   124             $this->
toolbar->addComponent($btn);
   132             $this->ui_factory->legacy(
'<div class="ilLSOLearnerView">')
   134         $components[] = $this->ui_factory->legacy(
'</div>');
   136         return $this->renderer->render($components);
   144         if ($cmd === self::CMD_STANDARD) {
   145             if ($this->intro === 
'') {
   146                 $contents[] = $this->ui_factory->legacy($this->
settings->getAbstract());
   147                 $img = $this->
settings->getAbstractImage();
   149                     $contents[] = $this->ui_factory->image()->responsive($img, 
'');
   152                 $contents[] = $this->ui_factory->legacy($this->intro);
   156         if ($cmd === self::CMD_EXTRO) {
   157             if ($this->extro === 
'') {
   158                 $contents[] = $this->ui_factory->legacy($this->
settings->getExtro());
   159                 $img = $this->
settings->getExtroImage();
   161                     $contents[] = $this->ui_factory->image()->responsive($img, 
'');
   164                 $contents[] = $this->ui_factory->legacy($this->extro);
   170     protected function play(): void
   172         $response = $this->player->play($this->
get);
   177                 $this->tpl->setContent($this->
lng->txt(
'lso_player_noitems'));
   180             case 'EXIT::' . $this->player::LSO_CMD_FINISH:
   181                 $cmd = self::CMD_EXTRO;
   184             case 'EXIT::' . $this->player::LSO_CMD_SUSPEND:
   186                 $cmd = self::CMD_STANDARD;
   189         $href = $this->
ctrl->getLinkTarget($this, $cmd, 
'', 
false, 
false);
 
__construct(protected int $usr_id, protected ilAccess $access, protected ilCtrl $ctrl, protected ilLanguage $lng, protected ilGlobalTemplateInterface $tpl, protected ilToolbarGUI $toolbar, protected ILIAS\UI\Factory $ui_factory, protected ILIAS\UI\Renderer $renderer, protected ilLearningSequenceRoles $roles, protected ilLearningSequenceSettings $settings, protected ilLSCurriculumBuilder $curriculum_builder, protected ilLSLaunchlinksBuilder $launchlinks_builder, protected ilLSPlayer $player, protected string $intro, protected string $extro, protected RequestWrapper $get)
 
getWrappedHTML(array $components)
 
const PARAM_LSO_NEXT_ITEM
 
Class ChatMainBarProvider . 
 
Builds the links to join/(re-)start the LearningSequence. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Interface RequestWrapper. 
 
getMainContent(string $cmd)
 
static redirect(string $a_script)
 
Implementation of KioskMode Player. 
 
Builds the overview (curriculum) of a LearningSequence.