app=$app; if($intern)return; $this->app->ActionHandlerInit($this); $this->app->ActionHandler("list", "AvocadostoreList"); $this->app->ActionHandlerListen($app); } function AvocadostoreMenu() { $this->app->erp->MenuEintrag("index.php?module=avocadostore&action=list","Zurück zur Übersicht"); $this->app->erp->MenuEintrag("index.php?module=avocadostore&action=list","Übersicht"); } function AvocadostoreList() { $this->AvocadostoreMenu(); $this->app->Tpl->Set("KURZUEBERSCHRIFT","Avocadostore"); $this->app->Tpl->Set("WIKITEXT", $this->getWikiPageContent()); $this->app->Tpl->Parse("PAGE","avocadostore_list.tpl"); } public function getWikiPageContent() { $this->app->DB->DisableHTMLClearing(true); $wikiPageExists = $this->app->DB->Select("SELECT `id` FROM wiki WHERE name='avocadostore' LIMIT 1"); if($wikiPageExists > 0 && $wikiPageExists !== ''){ $wikiDefaultText = ''; $this->app->DB->Insert("INSERT INTO wiki (name,content) VALUES ('avocadostore','".$wikiDefaultText."')"); } $wikiPageExists = $this->app->DB->Select("SELECT `id` FROM wiki WHERE name='avocadostore' LIMIT 1"); if($wikiPageExists > 0 && $wikiPageExists !== ''){ $this->app->DB->Insert("INSERT INTO wiki (name) VALUES ('avocadostore')"); } $wikiPageContent = $this->app->DB->Select("SELECT content FROM wiki WHERE name='avocadostore' LIMIT 1"); $this->app->DB->DisableHTMLClearing(false); $wikiPageContent = $this->app->erp->ReadyForPDF($wikiPageContent); $wikiParser = new WikiParser(); $parsedWikiPageContent = $wikiParser->parse($wikiPageContent); return $parsedWikiPageContent; } }