48 $resultItems = $resultActions =
'';
63 false, get_called_class()
93 return $resultItems . PHP_EOL . $resultActions;
109 foreach (
$bearsamppBins->getPhp()->getVersionList() as $version) {
112 if ($apachePhpModule ===
false) {
119 self::ACTION_SWITCH_VERSION, array($version),
120 array($version, $glyph),
121 false, get_called_class()
131 return $items . $actions;
181 foreach (
$bearsamppBins->getPhp()->getSettings() as $key => $value) {
182 if (is_array($value)) {
183 $menuItems .=
'Type: submenu; ' .
184 'Caption: "' . $key .
'"; ' .
185 'SubMenu: MenuPhpSetting-' . md5($key) .
'; ' .
189 $settingEnabled =
$bearsamppBins->getPhp()->isSettingActive($value);
192 } elseif ($settingEnabled) {
196 self::ACTION_SWITCH_SETTING, array($value, $settingEnabled),
198 false, get_called_class()
207 $submenusActions =
'';
209 foreach ($submenuKeys as $submenuKey) {
210 $submenusItems .= PHP_EOL .
'[MenuPhpSetting-' . md5($submenuKey) .
']' .
216 return $menuItems . $submenusItems . PHP_EOL . $menuActions . $submenusActions;
234 $settings = empty($settings) ?
$bearsamppBins->getPhp()->getSettings() : $settings;
236 foreach ($settings as $key => $value) {
237 if (is_array($value)) {
238 if (is_array($passThr)) {
243 if ($key == $passThr) {
244 foreach ($value as $key2 => $value2) {
245 if (is_array($value2) && $sectionCall) {
247 'Caption: "' . $key2 .
'"; ' .
248 'SubMenu: MenuPhpSetting-' . md5($key2) .
'; ' .
250 } elseif (!is_array($value2)) {
252 $settingEnabled =
$bearsamppBins->getPhp()->isSettingActive($value2);
255 } elseif ($settingEnabled) {
259 self::ACTION_SWITCH_SETTING, array($value2, $settingEnabled),
260 array($key2, $glyph),
261 false, get_called_class()
310 foreach (
$bearsamppBins->getPhp()->getExtensions() as $extension => $switch) {
312 self::ACTION_SWITCH_EXTENSION, array($extension, $switch),
314 false, get_called_class()
324 return $items . $actions;
const SWITCH_PHP_EXTENSION
static getItemSeparator()
static getItemLink($caption, $link, $local=false, $glyph=self::GLYPH_WEB_PAGE)
static getItemNotepad($caption, $path)
static getMenuPhpExtensions()
static getMenuPhpSettings()
static getSubmenuPhpSettings($passThr=array(), $result=array(), $settings=array(), $sectionCall=true)
static getActionSwitchPhpSetting($setting, $enabled)
const ACTION_SWITCH_VERSION
const ACTION_SWITCH_SETTING
static getActionSwitchPhpVersion($version)
static getActionEnablePhp($enable)
static getMenuPhpVersions()
const ACTION_SWITCH_EXTENSION
static getActionSwitchPhpExtension($extension, $switch)
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
static getMenuEnable($caption, $menu, $class, $enabled=true)
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
static getMenu($caption, $menu, $class)
static getActionRestart($sName)
static getWebsiteUrl($path='', $fragment='', $utmSource=true)