33 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();
75 $ilLocator = $DIC[
'ilLocator'];
78 $next_class = $this->ctrl->getNextClass($this);
82 $this->ctrl->setParameter($this,
"dclv", $viewdef->getId());
86 switch ($next_class) {
87 case "ilpageobjectgui":
88 throw new ilCOPageException(
"Deprecated. ilDclDetailedViewDefinitionGUI gui forwarding to ilpageobject");
92 $ilLocator->addItem(
$title, $this->ctrl->getLinkTarget($this,
"preview"));
95 return parent::executeCommand();
103 $ilToolbar = $DIC[
'ilToolbar'];
110 $delete_button->setCaption(
'dcl_empty_detailed_view');
111 $delete_button->setUrl($this->ctrl->getLinkTarget($this,
'confirmDelete'));
112 $ilToolbar->addButtonInstance($delete_button);
116 $activation_button->setCaption(
'dcl_deactivate_view');
117 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'deactivate'));
119 $activation_button->setCaption(
'dcl_activate_view');
120 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'activate'));
123 $ilToolbar->addButtonInstance($activation_button);
127 $this->
setPrependingHtml(
"<span class=\"small\">" . $this->lng->txt(
"dcl_legend_placeholders") .
": " . implode(
" ",
$legend)
132 return parent::showPage();
139 $page->setActive(
true);
141 $this->ctrl->redirect($this,
'edit');
148 $page->setActive(
false);
150 $this->ctrl->redirect($this,
'edit');
164 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
166 $conf->setFormAction(
$ilCtrl->getFormAction($this));
167 $conf->setHeaderText(
$lng->txt(
'dcl_confirm_delete_detailed_view_title'));
169 $conf->addItem(
'tableview', (
int) $this->tableview_id,
$lng->txt(
'dcl_confirm_delete_detailed_view_text'));
171 $conf->setConfirm(
$lng->txt(
'delete'),
'deleteView');
172 $conf->setCancel(
$lng->txt(
'cancel'),
'cancelDelete');
174 $tpl->setContent($conf->getHTML());
186 $ilCtrl->redirect($this,
"edit");
197 include_once(
"class.ilDclDetailedViewDefinition.php");
199 $pageObject->delete();
205 $ilCtrl->redirectByClass(
"ilDclTableViewEditGUI",
"editGeneralSettings");
220 $ilCtrl->redirectByClass(
'ilDclTableViewGUI',
"show");
254 foreach ($allp as $item) {
255 $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, $add_random=true)
get content style path
__construct( $a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
showPage()
display content of page
postOutputProcessing($a_output)
Finalizing output processing.
Base exception class for copage service.
Confirmation screen class.
Class ilDclDetailedViewDefinition.