34 $this->
http = $DIC->http();
39 $ref_id = $this->
http->wrapper()->query()->retrieve(
'ref_id', $this->
refinery->kindlyTo()->int());
42 $viewdef->setId($tableview_id);
44 $viewdef->setActive(
false);
45 $viewdef->create(
false);
51 $this->tpl->setCurrentBlock(
"SyntaxStyle");
53 $this->tpl->parseCurrentBlock();
55 $this->tpl->setCurrentBlock(
"ContentStyle");
57 $this->tpl->parseCurrentBlock();
66 $ilLocator = $DIC[
'ilLocator'];
68 $next_class = $this->
ctrl->getNextClass($this);
72 $this->
ctrl->setParameter($this,
"dclv", $viewdef->getId());
73 $title = $this->
lng->txt(
"dcl_view_viewdefinition");
76 switch ($next_class) {
77 case "ilpageobjectgui":
78 throw new ilCOPageException(
"Deprecated. ilDclDetailedViewDefinitionGUI gui forwarding to ilpageobject");
82 $ilLocator->addItem($title, $this->
ctrl->getLinkTarget($this,
"preview"));
85 return parent::executeCommand();
93 $delete_button->setCaption(
'dcl_empty_detailed_view');
94 $delete_button->setUrl($this->
ctrl->getLinkTarget($this,
'confirmDelete'));
95 $this->
toolbar->addButtonInstance($delete_button);
99 $activation_button->setCaption(
'dcl_deactivate_view');
100 $activation_button->setUrl($this->
ctrl->getLinkTarget($this,
'deactivate'));
102 $activation_button->setCaption(
'dcl_activate_view');
103 $activation_button->setUrl($this->
ctrl->getLinkTarget($this,
'activate'));
106 $this->
toolbar->addButtonInstance($activation_button);
108 $legend = $this->
getPageObject()->getAvailablePlaceholders();
109 if (
sizeof($legend)) {
111 "<span class=\"small\">" . $this->
lng->txt(
"dcl_legend_placeholders") .
": " . implode(
" ", $legend)
117 return parent::showPage();
123 $page->setActive(
true);
125 $this->
ctrl->redirect($this,
'edit');
131 $page->setActive(
false);
133 $this->
ctrl->redirect($this,
'edit');
139 $conf->setFormAction($this->
ctrl->getFormAction($this));
140 $conf->setHeaderText($this->
lng->txt(
'dcl_confirm_delete_detailed_view_title'));
142 $conf->addItem(
'tableview', $this->tableview_id, $this->
lng->txt(
'dcl_confirm_delete_detailed_view_text'));
144 $conf->setConfirm($this->
lng->txt(
'delete'),
'deleteView');
145 $conf->setCancel($this->
lng->txt(
'cancel'),
'cancelDelete');
147 $this->tpl->setContent($conf->getHTML());
152 $this->
ctrl->redirect($this,
"edit");
159 $pageObject->delete();
162 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"dcl_empty_detailed_view_success"),
true);
163 $this->
ctrl->redirectByClass(self::class,
"edit");
191 foreach ($allp as $item) {
192 $a_output = str_replace($item,
"<span style=\"color:green\">" . $item .
"</span>", $a_output);
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...
ILIAS HTTP Services $http
static http()
Fetches the global http state from ILIAS.
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
executeCommand()
execute command
ILIAS Refinery Factory $refinery
static _lookupObjectId(int $ref_id)
postOutputProcessing(string $a_output)
Finalizing output processing.
static getSyntaxStylePath()
setPresentationTitle(string $a_title="")
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
__construct(Container $dic, ilPlugin $plugin)
__construct(int $tableview_id)
setPrependingHtml(string $a_prependinghtml)
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...