Definition at line 21 of file class.ilDclSwitcher.php.
◆ __construct()
◆ addSwitcherToToolbar()
ilDclSwitcher::addSwitcherToToolbar |
( |
array |
$links, |
|
|
string |
$label |
|
) |
| |
|
protected |
◆ addTableSwitcherToToolbar()
ilDclSwitcher::addTableSwitcherToToolbar |
( |
array |
$tables, |
|
|
string |
$target_class, |
|
|
string |
$target_cmd |
|
) |
| |
- Parameters
-
ilDclTable[] | $tables | |
string | $target_class | |
string | $target_cmd | |
- Returns
- void
- Exceptions
-
Definition at line 43 of file class.ilDclSwitcher.php.
43 : void
44 {
45 $links = [];
46
47 $this->
ctrl->clearParameterByClass(ilObjDataCollectionGUI::class,
"tableview_id");
48 $this->
ctrl->clearParameterByClass($target_class,
"tableview_id");
49
50 foreach ($tables as $table) {
51 $this->
ctrl->setParameterByClass($target_class,
"table_id", $table->getId());
52 $links[] = $this->ui_factory->link()->standard($table->getTitle(), $this->ctrl->getLinkTargetByClass($target_class, $target_cmd));
53 }
54 $this->
ctrl->clearParameterByClass($target_class,
"table_id");
55
57 }
addSwitcherToToolbar(array $links, string $label)
References addSwitcherToToolbar(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
◆ addViewSwitcherToToolbar()
ilDclSwitcher::addViewSwitcherToToolbar |
( |
array |
$views, |
|
|
int |
$table_id, |
|
|
string |
$target_class, |
|
|
string |
$target_cmd |
|
) |
| |
- Parameters
-
ilDclTableView[] | $views | |
int | $table_id | |
string | $target_class | |
string | $target_cmd | |
- Returns
- void
- Exceptions
-
Definition at line 67 of file class.ilDclSwitcher.php.
67 : void
68 {
69 $links = [];
70 $this->
ctrl->setParameterByClass($target_class,
"table_id", $table_id);
71 foreach ($views as $view) {
72 $this->
ctrl->setParameterByClass($target_class,
"tableview_id", $view->getId());
73 $links[] = $this->ui_factory->link()->standard($view->getTitle(), $this->ctrl->getLinkTargetByClass($target_class, $target_cmd));
74 }
76 }
References addSwitcherToToolbar(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
◆ $ctrl
◆ $lng
◆ $toolbar
◆ $ui_factory
ILIAS UI Factory ilDclSwitcher::$ui_factory |
|
protected |
The documentation for this class was generated from the following file: