82 return ucfirst($name) . (!empty($args) ?
'-' . md5(serialize($args)) :
'');
96 $baseMethod =
'get' . ucfirst($name);
97 $args = $args ==
null ? array() : $args;
99 call_user_func_array($class .
'::' . $baseMethod, $args);
115 public static function getActionRun($action, $args = array(), $item = array(), $waitUntilTerminated =
true)
118 $args = $args ==
null ? array() : $args;
121 foreach ($args as $arg) {
122 $argImp .=
' ' . base64_encode($arg);
133 (!empty($item[self::ITEM_GLYPH]) ?
'; Glyph: "' . $item[
self::ITEM_GLYPH] .
'"' :
'');
134 } elseif ($waitUntilTerminated) {
135 $result .=
'; Flags: waituntilterminated';
152 public static function getActionMulti($action, $args = array(), $item = array(), $disabled =
false, $class =
false)
154 $action =
'action' . ucfirst($action);
155 $args = $args ==
null ? array() : $args;
158 $call =
'Action: multi; Actions: ' . $sectionName;
161 $call =
'Type: item; ' . $call .
163 (!empty($item[self::ITEM_GLYPH]) ?
'; Glyph: "' . $item[
self::ITEM_GLYPH] .
'"' :
'');
165 $call .=
'; Flags: waituntilterminated';
168 return array($call, self::getSectionContent($action, $class, $args));
190 public static function getMenu($caption, $menu, $class)
192 $menu =
'menu' . ucfirst($menu);
194 $call =
'Type: submenu; ' .
195 'Caption: "' . $caption .
'"; ' .
199 return array($call, self::getSectionContent($menu, $class,
null));
212 public static function getMenuEnable($caption, $menu, $class, $enabled =
true)
214 $menu =
'menu' . ucfirst($menu);
216 $call =
'Type: submenu; ' .
217 'Caption: "' . $caption .
'"; ' .
221 return array($call, self::getSectionContent($menu, $class,
null));
235 $result =
'[Services]' . PHP_EOL;
237 $result .=
'Name: ' . $service->getName() . PHP_EOL;
250 return '[StartupAction]' . PHP_EOL .
277 '[Menu.Right]' . PHP_EOL .
344 $httpsUrl =
'https://localhost' . (
$bearsamppBins->getApache()->getSslPort() != 443 ?
':' .
$bearsamppBins->getApache()->getSslPort() :
'');
348 '[Menu.Left]' . PHP_EOL .
const GLYPH_FOLDER_DISABLED
static getSectionMessages()
static getItemSeparator()
static getSectionMenuLeftSettings($caption)
static getItemLink($caption, $link, $local=false, $glyph=self::GLYPH_WEB_PAGE)
static getSectionConfig()
static getItemExplore($caption, $path)
static getSectionMenuRightSettings()
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
static getSectionContent($name, $class, $args=array())
static getSectionServices()
static getMenuEnable($caption, $menu, $class, $enabled=true)
static getSectionMenuLeft()
static getSectionName($name, $args=array())
static getSectionMenuRight()
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
static getSectionStartupAction()
static getMenu($caption, $menu, $class)
static getWebsiteUrl($path='', $fragment='', $utmSource=true)