4 require_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5 require_once(
"class.ilDclDetailedViewDefinition.php");
34 public function __construct($tableview_id, $a_definition_id = 0) {
42 $this->tableview_id = $tableview_id;
48 $viewdef->setId($tableview_id);
50 $viewdef->setActive(
false);
54 parent::__construct(
"dclf", $tableview_id);
57 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
59 $tpl->setCurrentBlock(
"SyntaxStyle");
61 $tpl->parseCurrentBlock();
63 $tpl->setCurrentBlock(
"ContentStyle");
65 $tpl->parseCurrentBlock();
74 $ilLocator = $DIC[
'ilLocator'];
77 $next_class = $this->ctrl->getNextClass($this);
81 $this->ctrl->setParameter($this,
"dclv", $viewdef->getId());
85 switch ($next_class) {
86 case "ilpageobjectgui":
87 throw new ilCOPageException(
"Deprecated. ilDclDetailedViewDefinitionGUI gui forwarding to ilpageobject");
91 $ilLocator->addItem(
$title, $this->ctrl->getLinkTarget($this,
"preview"));
94 return parent::executeCommand();
101 $ilToolbar = $DIC[
'ilToolbar'];
108 $delete_button->setCaption(
'dcl_empty_detailed_view');
109 $delete_button->setUrl($this->ctrl->getLinkTarget($this,
'confirmDelete'));
110 $ilToolbar->addButtonInstance($delete_button);
114 $activation_button->setCaption(
'dcl_deactivate_view');
115 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'deactivate'));
117 $activation_button->setCaption(
'dcl_activate_view');
118 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'activate'));
121 $ilToolbar->addButtonInstance($activation_button);
125 $this->
setPrependingHtml(
"<span class=\"small\">" . $this->lng->txt(
"dcl_legend_placeholders") .
": " . implode(
" ",
$legend)
130 return parent::showPage();
136 $page->setActive(
true);
138 $this->ctrl->redirect($this,
'edit');
144 $page->setActive(
false);
146 $this->ctrl->redirect($this,
'edit');
159 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
161 $conf->setFormAction(
$ilCtrl->getFormAction($this));
162 $conf->setHeaderText(
$lng->txt(
'dcl_confirm_delete_detailed_view_title'));
164 $conf->addItem(
'tableview', (
int)$this->tableview_id,
$lng->txt(
'dcl_confirm_delete_detailed_view_text'));
166 $conf->setConfirm(
$lng->txt(
'delete'),
'deleteView');
167 $conf->setCancel(
$lng->txt(
'cancel'),
'cancelDelete');
169 $tpl->setContent($conf->getHTML());
180 $ilCtrl->redirect($this,
"edit");
190 include_once(
"class.ilDclDetailedViewDefinition.php");
192 $pageObject->delete();
198 $ilCtrl->redirectByClass(
"ilDclTableViewEditGUI",
"editGeneralSettings");
213 $ilCtrl->redirectByClass(
'ilDclTableViewGUI',
"show");
246 foreach ($allp as $item) {
247 $a_output = str_replace($item,
"<span style=\"color:green\">" . $item .
"</span>", $a_output);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
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.
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
static getContentStylePath($a_style_id)
get content style path
showPage()
display content of page
__construct($a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
postOutputProcessing($a_output)
Finalizing output processing.
Base exception class for copage service.
Confirmation screen class.
Class ilDclDetailedViewDefinition.