ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
LSOSequentialFilter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
29{
31 private \ILIAS\UI\Factory $ui_factory;
33 private \ilLanguage $lng;
35 private \ilCtrl $ctrl;
38
42 public function __construct(
47 ) {
48 $this->ui_factory = $ui_factory;
49 $this->lng = $lng;
50 $this->ctrl = $ctrl;
51 $this->parent_gui = $parent_gui;
52 }
53
57 public function getFilter(string $action): \ILIAS\UI\Component\Input\Container\Filter\Standard
58 {
59 $action_url = $this->ctrl->getLinkTarget($this->parent_gui, $action);
60
61 $fields = [
62 'name' => $this->ui_factory->input()->field()->text($this->lng->txt('name')),
63 'condition' => $this->ui_factory->input()->field()->select(
64 $this->lng->txt('table_may_proceed'),
65 [
66 'always' => $this->lng->txt('always'),
67 'lp' => $this->lng->txt('condition_learning_progress'),
68 ]
69 ),
70 'online_status' => $this->ui_factory->input()->field()->select(
71 $this->lng->txt('status'),
72 [
73 'online' => $this->lng->txt('online'),
74 'offline' => $this->lng->txt('offline'),
75 ]
76 ),
77 ];
78
79 return $this->ui_factory->input()->container()->filter()->standard(
80 $action_url,
81 $action_url,
82 $action_url,
83 $action_url,
84 $action_url,
85 $action_url,
86 $fields,
87 [true, true, true],
88 true,
89 true
90 );
91 }
92}
Builds the filter for sequential learning sequence content.
getFilter(string $action)
Builds a filter with links targeting the given action.
__construct(\ILIAS\UI\Factory $ui_factory, \ilLanguage $lng, \ilCtrl $ctrl, ilObjLearningSequenceContentGUI $parent_gui)
Creates a sequential content filter builder.
Definition: UI.php:27
Class ilCtrl provides processing control methods.
language handling
This is how the factory for UI elements looks.
Definition: Factory.php:38
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.