◆ __construct()
ilSystemStyleDocumentationGUI::__construct |
( |
|
$skin_id = "" , |
|
|
|
$style_id = "" |
|
) |
| |
◆ executeCommand()
ilSystemStyleDocumentationGUI::executeCommand |
( |
| ) |
|
◆ parseEntries()
ilSystemStyleDocumentationGUI::parseEntries |
( |
| ) |
|
|
protected |
- Returns
- Crawler\Entry\ComponentEntries
- Exceptions
-
Exception\CrawlerException
Definition at line 99 of file class.ilSystemStyleDocumentationGUI.php.
99 {
101 $entries = $crawler->crawlFactory(self::ROOT_FACTORY_PATH);
102 file_put_contents(self::$DATA_PATH, json_encode($entries));
104 return $entries;
105 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
References ilUtil\sendSuccess().
◆ readEntries()
ilSystemStyleDocumentationGUI::readEntries |
( |
| ) |
|
|
protected |
- Returns
- Crawler\Entry\ComponentEntries
Definition at line 110 of file class.ilSystemStyleDocumentationGUI.php.
110 {
111 $entries_array = json_decode(file_get_contents(self::$DATA_PATH),true);
112
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);
117 }
118
119 return $entries;
120 }
Referenced by show().
◆ show()
ilSystemStyleDocumentationGUI::show |
( |
| ) |
|
Definition at line 70 of file class.ilSystemStyleDocumentationGUI.php.
70 {
72 $content = "";
73
74
75 if(DEVMODE == 1){
78 $reload_btn->setCaption($this->lng->txt('refresh_entries'),false);
80 $this->ctrl->saveParameter($this,"node_id");
81 }
82 $reload_btn->setUrl($this->ctrl->getLinkTarget($this, 'parseEntries'));
83 $toolbar->addButtonInstance($reload_btn);
84 $content .= $toolbar->getHTML();
85 }
86
88 $this->tpl->setLeftNavContent($explorer->getHTML());
89 $entry_gui = new ilKSDocumentationEntryGUI($this,$explorer->getCurrentOpenedNode(), $entries);
90 $content .= $entry_gui->renderEntry();
91
92 $this->tpl->setContent($content);
93 }
References $_GET, ilLinkButton\getInstance(), and readEntries().
Referenced by executeCommand().
◆ $ctrl
ilCtrl ilSystemStyleDocumentationGUI::$ctrl |
|
protected |
◆ $DATA_PATH
ilSystemStyleDocumentationGUI::$DATA_PATH |
|
static |
◆ $lng
ilSystemStyleDocumentationGUI::$lng |
|
protected |
◆ $tpl
ilSystemStyleDocumentationGUI::$tpl |
|
protected |
◆ DATA_DIRECTORY
const ilSystemStyleDocumentationGUI::DATA_DIRECTORY = "./Services/Style/System/data" |
◆ DATA_FILE
const ilSystemStyleDocumentationGUI::DATA_FILE = "data.json" |
◆ ROOT_FACTORY_PATH
const ilSystemStyleDocumentationGUI::ROOT_FACTORY_PATH = "./Services/Style/System/data/abstractDataFactory.php" |
The documentation for this class was generated from the following file: