40 $ilCtrl = $DIC[
'ilCtrl'];
44 $this->ctrl = $ilCtrl;
52 $viewdef->setActive(
false);
59 $tpl->addJavascript(
'Modules/DataCollection/js/single_view_listener.js');
62 $tpl->setCurrentBlock(
"SyntaxStyle");
64 $tpl->parseCurrentBlock();
66 $tpl->setCurrentBlock(
"ContentStyle");
68 $tpl->parseCurrentBlock();
78 $ilLocator = $DIC[
'ilLocator'];
81 $next_class = $this->ctrl->getNextClass($this);
85 $this->ctrl->setParameter($this,
"dclv", $viewdef->getId());
86 $title =
$lng->txt(
"dcl_view_viewdefinition");
89 switch ($next_class) {
90 case "ilpageobjectgui":
91 throw new ilCOPageException(
"Deprecated. ilDclDetailedViewDefinitionGUI gui forwarding to ilpageobject");
95 $ilLocator->addItem($title, $this->ctrl->getLinkTarget($this,
"preview"));
98 return parent::executeCommand();
109 $ilToolbar = $DIC[
'ilToolbar'];
115 $delete_button->setCaption(
'dcl_empty_detailed_view');
116 $delete_button->setUrl($this->ctrl->getLinkTarget($this,
'confirmDelete'));
117 $ilToolbar->addButtonInstance($delete_button);
121 $activation_button->setCaption(
'dcl_deactivate_view');
122 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'deactivate'));
124 $activation_button->setCaption(
'dcl_activate_view');
125 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'activate'));
128 $ilToolbar->addButtonInstance($activation_button);
130 $legend = $this->
getPageObject()->getAvailablePlaceholders();
131 if (
sizeof($legend)) {
133 "<span class=\"small\">" . $this->lng->txt(
"dcl_legend_placeholders") .
": " . implode(
" ", $legend)
139 return parent::showPage();
145 parent::editActivation();
151 return parent::edit();
158 parent::setEditPreview($a_editpreview);
168 $page->setActive(
true);
170 $this->ctrl->redirect($this,
'edit');
180 $page->setActive(
false);
182 $this->ctrl->redirect($this,
'edit');
192 $ilCtrl = $DIC[
'ilCtrl'];
197 $conf->setFormAction($ilCtrl->getFormAction($this));
198 $conf->setHeaderText(
$lng->txt(
'dcl_confirm_delete_detailed_view_title'));
200 $conf->addItem(
'tableview', (
int) $this->tableview_id,
$lng->txt(
'dcl_confirm_delete_detailed_view_text'));
202 $conf->setConfirm(
$lng->txt(
'delete'),
'deleteView');
203 $conf->setCancel(
$lng->txt(
'cancel'),
'cancelDelete');
205 $tpl->setContent($conf->getHTML());
215 $ilCtrl = $DIC[
'ilCtrl'];
217 $ilCtrl->redirect($this,
"edit");
227 $ilCtrl = $DIC[
'ilCtrl'];
232 $pageObject->delete();
235 ilUtil::sendSuccess(
$lng->txt(
"dcl_empty_detailed_view_success"),
true);
238 $ilCtrl->redirectByClass(
"ilDclTableViewEditGUI",
"editGeneralSettings");
249 $ilCtrl = $DIC[
'ilCtrl'];
253 ilUtil::sendSuccess(
$lng->txt(
"cont_page_lock_released"),
true);
254 $ilCtrl->redirectByClass(
'ilDclTableViewGUI',
"show");
287 foreach ($allp as $item) {
288 $a_output = str_replace($item,
"<span style=\"color:green\">" . $item .
"</span>", $a_output);
static getContentStylePath($a_style_id, $add_random=true, $add_token=true)
get content style path
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
confirmDelete()
confirmDelete
releasePageLock()
Release page lock overwrite to redirect properly.
getPageObject()
Get Page Object.
setEditPreview($a_editpreview)
__construct( $a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="", $concrete_lang="")
Constructor.
Class ilDclDetailedViewDefinitionGUI.
static _lookupObjectId($a_ref_id)
cancelDelete()
cancelDelete
setPrependingHtml($a_prependinghtml)
Set Prepending HTML.
executeCommand()
execute command
setPresentationTitle($a_title="")
static getSyntaxStylePath()
get syntax style path
__construct(Container $dic, ilPlugin $plugin)
showPage()
display content of page
postOutputProcessing($a_output)
Finalizing output processing.
Base exception class for copage service.
Confirmation screen class.
Class ilDclDetailedViewDefinition.