32 public function __construct($tableview_id, $a_definition_id = 0)
41 $this->tableview_id = $tableview_id;
47 $viewdef->setId($tableview_id);
49 $viewdef->setActive(
false);
53 parent::__construct(
"dclf", $tableview_id);
56 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
58 $tpl->setCurrentBlock(
"SyntaxStyle");
60 $tpl->parseCurrentBlock();
62 $tpl->setCurrentBlock(
"ContentStyle");
64 $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();
102 $ilToolbar = $DIC[
'ilToolbar'];
109 $delete_button->setCaption(
'dcl_empty_detailed_view');
110 $delete_button->setUrl($this->ctrl->getLinkTarget($this,
'confirmDelete'));
111 $ilToolbar->addButtonInstance($delete_button);
115 $activation_button->setCaption(
'dcl_deactivate_view');
116 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'deactivate'));
118 $activation_button->setCaption(
'dcl_activate_view');
119 $activation_button->setUrl($this->ctrl->getLinkTarget($this,
'activate'));
122 $ilToolbar->addButtonInstance($activation_button);
127 "<span class=\"small\">" . $this->lng->txt(
"dcl_legend_placeholders") .
": " . implode(
" ",
$legend)
133 return parent::showPage();
140 $page->setActive(
true);
142 $this->ctrl->redirect($this,
'edit');
149 $page->setActive(
false);
151 $this->ctrl->redirect($this,
'edit');
165 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
167 $conf->setFormAction(
$ilCtrl->getFormAction($this));
168 $conf->setHeaderText(
$lng->txt(
'dcl_confirm_delete_detailed_view_title'));
170 $conf->addItem(
'tableview', (
int) $this->tableview_id,
$lng->txt(
'dcl_confirm_delete_detailed_view_text'));
172 $conf->setConfirm(
$lng->txt(
'delete'),
'deleteView');
173 $conf->setCancel(
$lng->txt(
'cancel'),
'cancelDelete');
175 $tpl->setContent($conf->getHTML());
187 $ilCtrl->redirect($this,
"edit");
198 include_once(
"class.ilDclDetailedViewDefinition.php");
200 $pageObject->delete();
203 ilUtil::sendSuccess(
$lng->txt(
"dcl_empty_detailed_view_success"),
true);
206 $ilCtrl->redirectByClass(
"ilDclTableViewEditGUI",
"editGeneralSettings");
221 ilUtil::sendSuccess(
$lng->txt(
"cont_page_lock_released"),
true);
222 $ilCtrl->redirectByClass(
'ilDclTableViewGUI',
"show");
257 foreach ($allp as $item) {
258 $a_output = str_replace($item,
"<span style=\"color:green\">" . $item .
"</span>", $a_output);
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.