36 protected $scriptName;
64 protected $configLabel;
71 protected $languageLabel;
106 protected $languageUrl;
124 $this->scriptName =
$sn;
146 $this->makeMainItem();
148 if (is_readable($pth[
'file'][
'plugin_stylesheet'])) {
149 $this->makeStylesheetItem();
151 if (is_readable($pth[
'file'][
'plugin_config'])) {
152 $this->makeConfigItem();
154 if (is_readable($pth[
'file'][
'plugin_language'])) {
155 $this->makeLanguageItem();
157 if (is_readable($pth[
'file'][
'plugin_help'])) {
158 $this->makeHelpItem($pth[
'file'][
'plugin_help']);
170 private function initLabels()
174 $this->mainLabel = empty($plugin_tx[$this->plugin][
'menu_main'])
175 ? $tx[
'menu'][
'tab_main']
177 $this->cssLabel = empty($plugin_tx[$this->plugin][
'menu_css'])
178 ? $tx[
'menu'][
'tab_css']
180 $this->configLabel = empty($plugin_tx[$this->plugin][
'menu_config'])
181 ? $tx[
'menu'][
'tab_config']
183 $this->languageLabel = empty($plugin_tx[$this->plugin][
'menu_language'])
184 ? $tx[
'menu'][
'tab_language']
186 $this->helpLabel = empty($plugin_tx[$this->plugin][
'menu_help'])
187 ? $tx[
'menu'][
'tab_help']
198 private function initUrls()
202 $this->mainUrl = $this->scriptName .
'?&' . $this->plugin
203 .
'&admin=plugin_main&action=plugin_text&normal';
204 $this->cssUrl = $this->scriptName .
'?&' . $this->plugin
205 .
'&admin=plugin_stylesheet&action=plugin_text&normal';
206 $this->configUrl = $this->scriptName .
'?&' . $this->plugin
207 .
'&admin=plugin_config&action=plugin_edit&normal';
208 $this->languageUrl = $this->scriptName .
'?&' . $this->plugin
209 .
'&admin=plugin_language&action=plugin_edit&normal';
210 $this->helpUrl = $pth[
'file'][
'plugin_help'];