21 define(
"TITLE_core_debug", _(
"Debug Plugins"));
29 function __construct()
31 $this->Name =
"debug";
32 $this->Title = TITLE_core_debug;
33 $this->MenuList =
"Help::Debug::Debug Plugins";
35 parent::__construct();
44 if ($this->
State != PLUGIN_STATE_READY)
48 if ($this->OutputToStdout && $this->OutputType==
"Text") {
53 if ($this->OutputType==
'HTML')
55 $output = $this->htmlContent();
57 if (!$this->OutputToStdout)
59 $this->vars[
'content'] = $output;
69 protected function htmlContent()
77 $text = _(
"Plugin Summary");
78 $V .=
"<H2>$text</H2>";
79 foreach ($Plugins as $key => $val)
81 $V .=
"$key : $val->Name (state=$val->State)<br>\n";
83 $text = _(
"Plugin State Details");
84 $V .=
"<H2>$text</H2>";
86 foreach ($Plugins as $plugin)
88 $V .= strval($plugin) .
"\n";
97 $NewPlugin->Initialize();
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.
Output()
display the loaded menu and plugins.
This is the Plugin class. All plugins should: