2 require_once(
"Services/Style/System/classes/Documentation/class.ilKSDocumentationExplorerGUI.php");
3 require_once(
"Services/Style/System/classes/Documentation/class.ilKSDocumentationEntryGUI.php");
4 require_once(
"libs/composer/vendor/geshi/geshi/src/geshi.php");
43 $this->ctrl = $DIC->ctrl();
44 $this->lng = $DIC->language();
45 $this->tpl = $DIC[
"tpl"];
47 self::$DATA_PATH= self::DATA_DIRECTORY.
"/".self::DATA_FILE;
56 $cmd = $this->ctrl->getCmd();
78 $reload_btn->setCaption($this->lng->txt(
'refresh_entries'),
false);
80 $this->ctrl->saveParameter($this,
"node_id");
82 $reload_btn->setUrl($this->ctrl->getLinkTarget($this,
'parseEntries'));
83 $toolbar->addButtonInstance($reload_btn);
84 $content .= $toolbar->getHTML();
88 $this->tpl->setLeftNavContent($explorer->getHTML());
92 $this->tpl->setContent($content);
101 $entries = $crawler->crawlFactory(self::ROOT_FACTORY_PATH);
102 file_put_contents(self::$DATA_PATH, json_encode($entries));
111 $entries_array = json_decode(file_get_contents(self::$DATA_PATH),
true);
113 $entries =
new Crawler\Entry\ComponentEntries();
114 foreach($entries_array as $entry_array){
115 $entry =
new Crawler\Entry\ComponentEntry($entry_array);
116 $entries->addEntry($entry);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
__construct($skin_id="", $style_id="")
ilSystemStyleDocumentationGUI constructor.
executeCommand()
Execute command.