2require_once(
"Services/Style/System/classes/Documentation/class.ilKSDocumentationExplorerGUI.php");
3require_once(
"Services/Style/System/classes/Documentation/class.ilKSDocumentationEntryGUI.php");
4require_once(
"libs/composer/vendor/geshi/geshi/src/geshi.php");
47 $this->ctrl =
$DIC->ctrl();
48 $this->lng =
$DIC->language();
49 $this->tpl =
$DIC[
"tpl"];
50 $this->global_screen =
$DIC->globalScreen();
62 if ($this->is_read_only) {
63 $this->resetForReadOnly();
72 $context = $this->global_screen->tool()->context()->current();
73 $context->addAdditionalData(self::SHOW_TREE,
true);
81 $entry_gui =
new ilKSDocumentationEntryGUI(
85 $content .= $entry_gui->renderEntry();
86 $this->tpl->setContent($content);
89 protected function resetForReadOnly()
96 $DIC->tabs()->clearTargets();
101 $DIC->help()->setScreenIdComponent(
"sty");
102 $DIC->help()->setScreenId(
"system_styles");
104 $skin_id =
$_GET[
"skin_id"];
105 $style_id =
$_GET[
"style_id"];
108 $style = $skin->getStyle($style_id);
110 $DIC[
"tpl"]->setTitle(
$DIC->language()->txt(
"documentation"));
112 if ($style->isSubstyle()) {
113 $DIC[
"tpl"]->setDescription(
114 $this->lng->txt(
"ks_documentation_of_substyle")
116 . $style->getName() .
"' " .
117 $this->lng->txt(
"of_parent") .
" '" . $skin->getStyle($style->getSubstyleOf())->getName() .
"' " .
118 $this->lng->txt(
"from_skin") .
" " . $skin->getName()
121 $DIC[
"tpl"]->setDescription(
122 $this->lng->txt(
"ks_documentation_of_style") .
" '" . $style->getName() .
"' " .
123 $this->lng->txt(
"from_skin") .
" '" . $skin->getName() .
"'"
127 $DIC[
"ilLocator"]->clearItems();
128 $DIC[
"tpl"]->setLocator();
133 $this->tpl->setPermanentLink(
"stys",
$_GET[
"ref_id"],
"_" .
$_GET[
"node_id"] .
"_"
134 .
$_GET[
"skin_id"] .
"_" .
$_GET[
"style_id"]);
An exception for terminatinating execution or to throw for unit testing.
setIsReadOnly($is_read_only)
__construct($read_only=false)
ilSystemStyleDocumentationGUI constructor.
executeCommand()
Execute command.
static generateFromId($skin_id, ilSystemStyleMessageStack $message_stack=null, ilSystemStyleConfig $system_styles_conf=null)
Generate the container class by parsing the corresponding XML.