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.
References addSwitcherToToolbar(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
47 $this->
ctrl->clearParameterByClass(ilObjDataCollectionGUI::class,
"tableview_id");
48 $this->
ctrl->clearParameterByClass($target_class,
"tableview_id");
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));
54 $this->
ctrl->clearParameterByClass($target_class,
"table_id");
addSwitcherToToolbar(array $links, string $label)
◆ 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.
References addSwitcherToToolbar(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
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));
addSwitcherToToolbar(array $links, string $label)
◆ $ctrl
◆ $lng
◆ $toolbar
◆ $ui_factory
ILIAS UI Factory ilDclSwitcher::$ui_factory |
|
protected |
The documentation for this class was generated from the following file: