2024.8.23
|
Static Public Member Functions | |
static | getActionServiceRestart ($service) |
static | getActionServicesClose () |
static | getActionServiceStart ($service) |
static | getActionServiceStop ($service) |
static | getGlyphFlah ($lang) |
static | getItemActionServiceRestart ($service) |
static | getItemActionServicesClose () |
static | getItemActionServiceStart ($service) |
static | getItemActionServiceStop ($service) |
static | getItemConsoleZ ($caption, $glyph, $id=null, $title=null, $initDir=null, $command=null) |
static | getItemExe ($caption, $exe, $glyph, $params=null) |
static | getItemExplore ($caption, $path) |
static | getItemLink ($caption, $link, $local=false, $glyph=self::GLYPH_WEB_PAGE) |
static | getItemNotepad ($caption, $path) |
static | getItemSeparator () |
static | getSectionConfig () |
static | getSectionMenuLeftSettings ($caption) |
static | getSectionMenuRightSettings () |
static | getSectionMessages () |
Static Private Member Functions | |
static | getActionService ($service, $action, $item=false) |
Class TplAestan
This class provides various methods to generate configuration strings for the Bearsampp application. It includes methods to create items for ConsoleZ, links, Notepad, executables, and explorer actions. Additionally, it handles service actions such as start, stop, and restart, and generates configuration sections for messages, config, and menu settings.
Constants:
Methods:
Definition at line 45 of file class.tpl.aestan.php.
|
staticprivate |
Returns a string representing a service action.
string | null | $service | The service name. |
string | $action | The action to perform. |
bool | $item | Whether to return as an item. |
Definition at line 255 of file class.tpl.aestan.php.
References $bearsamppLang, $result, GLYPH_RELOAD, GLYPH_START, GLYPH_STOP, Lang\MENU_RESTART_SERVICE, Lang\MENU_START_SERVICE, and Lang\MENU_STOP_SERVICE.
Referenced by getActionServiceRestart(), getActionServicesClose(), getActionServiceStart(), getActionServiceStop(), getItemActionServiceRestart(), getItemActionServicesClose(), getItemActionServiceStart(), and getItemActionServiceStop().
|
static |
Returns a string representing a service restart action.
string | $service | The service name. |
Definition at line 335 of file class.tpl.aestan.php.
References getActionService().
|
static |
Returns a string representing a close services action.
Definition at line 356 of file class.tpl.aestan.php.
References getActionService().
|
static |
Returns a string representing a service start action.
string | $service | The service name. |
Definition at line 291 of file class.tpl.aestan.php.
References getActionService().
|
static |
Returns a string representing a service stop action.
string | $service | The service name. |
Definition at line 313 of file class.tpl.aestan.php.
References getActionService().
|
static |
Retrieves the glyph flag for a given language.
string | $lang | The language code. |
Definition at line 117 of file class.tpl.aestan.php.
|
static |
Returns a string representing a service restart item.
string | $service | The service name. |
Definition at line 346 of file class.tpl.aestan.php.
References getActionService().
Referenced by TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
|
static |
Returns a string representing a close services item.
Definition at line 366 of file class.tpl.aestan.php.
References getActionService().
|
static |
Returns a string representing a service start item.
string | $service | The service name. |
Definition at line 302 of file class.tpl.aestan.php.
References getActionService().
Referenced by TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
|
static |
Returns a string representing a service stop item.
string | $service | The service name. |
Definition at line 324 of file class.tpl.aestan.php.
References getActionService().
Referenced by TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
|
static |
Returns a string representing a ConsoleZ item.
string | $caption | The caption for the item. |
int | $glyph | The glyph index. |
string | null | $id | The ID for the item. |
string | null | $title | The title for the item. |
string | null | $initDir | The initial directory for the item. |
string | null | $command | The command to execute. |
Definition at line 142 of file class.tpl.aestan.php.
References getItemExe().
Referenced by TplAppGit\getMenuGit(), TplAppGit\getMenuGitRepos(), TplAppMariadb\getMenuMariadb(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPostgresql\getMenuPostgresql(), TplAppPython\getMenuPython(), and TplAppTools\getMenuTools().
|
static |
Returns a string representing an executable item.
string | $caption | The caption for the item. |
string | $exe | The path to the executable. |
int | $glyph | The glyph index. |
string | null | $params | The parameters for the executable. |
Definition at line 221 of file class.tpl.aestan.php.
Referenced by getItemConsoleZ(), getItemLink(), getItemNotepad(), TplAppFilezilla\getMenuFilezilla(), TplAppGit\getMenuGit(), TplAppMailhog\getMenuMailhog(), TplAppMailpit\getMenuMailpit(), TplAppPython\getMenuPython(), and TplAppTools\getMenuTools().
|
static |
Returns a string representing an explorer item.
string | $caption | The caption for the item. |
string | $path | The path to explore. |
Definition at line 238 of file class.tpl.aestan.php.
References GLYPH_FOLDER_OPEN.
Referenced by TplApp\getSectionMenuLeft().
|
static |
Returns a string representing a link item.
string | $caption | The caption for the item. |
string | $link | The URL for the link. |
bool | $local | Whether the link is local. |
int | $glyph | The glyph index. |
Definition at line 177 of file class.tpl.aestan.php.
References $bearsamppConfig, $bearsamppRoot, and getItemExe().
Referenced by TplAppApache\getMenuApache(), TplAppApps\getMenuApps(), TplAppFilezilla\getMenuFilezilla(), TplAppMailhog\getMenuMailhog(), TplAppMailpit\getMenuMailpit(), TplAppMariadb\getMenuMariadb(), TplAppMemcached\getMenuMemcached(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppXlight\getMenuXlight(), TplApp\getSectionMenuLeft(), and TplApp\getSectionMenuRight().
|
static |
Returns a string representing a Notepad item.
string | $caption | The caption for the item. |
string | $path | The path to the file. |
Definition at line 200 of file class.tpl.aestan.php.
References $bearsamppConfig, and getItemExe().
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezilla(), TplAppLogs\getMenuLogs(), TplAppMailhog\getMenuMailhog(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpit(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadb(), TplAppMemcached\getMenuMemcached(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppXlight\getMenuXlight(), TplAppXlight\getMenuXlightService(), and TplAppEditConf\process().
|
static |
Returns a string representing a separator item.
Definition at line 126 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheAlias(), TplAppApache\getMenuApacheService(), TplAppApache\getMenuApacheVhosts(), TplAppFilezilla\getMenuFilezilla(), TplAppFilezilla\getMenuFilezillaService(), TplAppGit\getMenuGit(), TplAppMailhog\getMenuMailhog(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpit(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadb(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcached(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysql(), TplAppMysql\getMenuMysqlService(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppPostgresql\getMenuPostgresqlService(), TplAppTools\getMenuTools(), TplAppXlight\getMenuXlight(), TplAppXlight\getMenuXlightService(), TplApp\getSectionMenuLeft(), and TplApp\getSectionMenuRight().
|
static |
Returns a string representing the config section.
Definition at line 391 of file class.tpl.aestan.php.
References $bearsamppCore, and APP_TITLE.
Referenced by TplApp\process(), and TplApp\processLight().
|
static |
Returns a string representing the left menu settings section.
string | $caption | The caption for the left menu. |
Definition at line 430 of file class.tpl.aestan.php.
Referenced by TplApp\process().
|
static |
Returns a string representing the right menu settings section.
Definition at line 410 of file class.tpl.aestan.php.
Referenced by TplApp\process().
|
static |
Returns a string representing the messages section.
Definition at line 376 of file class.tpl.aestan.php.
References $bearsamppLang, Lang\ALL_RUNNING_HINT, Lang\NONE_RUNNING_HINT, and Lang\SOME_RUNNING_HINT.
Referenced by TplApp\process(), and TplApp\processLight().
const TplAestan::GLYPH_ABOUT = 21 |
Definition at line 66 of file class.tpl.aestan.php.
Referenced by TplApp\getSectionMenuRight().
const TplAestan::GLYPH_ADD = 1 |
Definition at line 49 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheAlias(), and TplAppApache\getMenuApacheVhosts().
const TplAestan::GLYPH_BROWSER = 5 |
Definition at line 52 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApache(), TplAppFilezilla\getMenuFilezilla(), TplAppMailhog\getMenuMailhog(), TplAppMailpit\getMenuMailpit(), TplAppMariadb\getMenuMariadb(), TplAppMemcached\getMenuMemcached(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppXlight\getMenuXlight(), and TplAppBrowser\process().
const TplAestan::GLYPH_CHECK = 13 |
Definition at line 60 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheModules(), TplAppApache\getMenuApacheVersions(), TplAppFilezilla\getMenuFilezilla(), TplAppFilezilla\getMenuFilezillaVersions(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), TplAppMailhog\getMenuMailhog(), TplAppMailhog\getMenuMailhogVersions(), TplAppMailpit\getMenuMailpit(), TplAppMailpit\getMenuMailpitVersions(), TplAppMariadb\getMenuMariadb(), TplAppMariadb\getMenuMariadbVersions(), TplAppMemcached\getMenuMemcached(), TplAppMemcached\getMenuMemcachedVersions(), TplAppMysql\getMenuMysql(), TplAppMysql\getMenuMysqlVersions(), TplAppNodejs\getMenuNodejs(), TplAppNodejs\getMenuNodejsVersions(), TplAppPhp\getMenuPhp(), TplAppPhp\getMenuPhpExtensions(), TplAppPhp\getMenuPhpSettings(), TplAppPhp\getMenuPhpVersions(), TplAppPostgresql\getMenuPostgresql(), TplAppPostgresql\getMenuPostgresqlVersions(), TplAppXlight\getMenuXlight(), TplAppXlight\getMenuXlightVersions(), TplAppPhp\getSubmenuPhpSettings(), and TplAppLaunchStartup\process().
const TplAestan::GLYPH_COMPOSER = 37 |
Definition at line 81 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_CONSOLEZ = 0 |
Definition at line 48 of file class.tpl.aestan.php.
Referenced by TplAppMariadb\getMenuMariadb(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPostgresql\getMenuPostgresql(), and TplAppTools\getMenuTools().
const TplAestan::GLYPH_DEBUG = 31 |
Definition at line 75 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheDebug(), TplAppMariadb\getMenuMariadbDebug(), TplAppMysql\getMenuMysqlDebug(), TplAppPostgresql\getMenuPostgresqlDebug(), and TplAppTools\getMenuTools().
const TplAestan::GLYPH_EXIT = 20 |
Definition at line 65 of file class.tpl.aestan.php.
Referenced by TplAppExit\process().
const TplAestan::GLYPH_FILE = 6 |
Definition at line 53 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheAlias(), and TplAppApache\getMenuApacheVhosts().
const TplAestan::GLYPH_FILEZILLA = 47 |
Definition at line 87 of file class.tpl.aestan.php.
Referenced by TplAppFilezilla\getMenuFilezilla().
const TplAestan::GLYPH_FOLDER_CLOSE = 3 |
Definition at line 51 of file class.tpl.aestan.php.
Referenced by TplApp\getMenu(), TplApp\getMenuEnable(), TplAppPhp\getMenuPhpSettings(), and TplAppPhp\getSubmenuPhpSettings().
const TplAestan::GLYPH_FOLDER_DISABLED = 48 |
Definition at line 88 of file class.tpl.aestan.php.
Referenced by TplApp\getMenuEnable().
const TplAestan::GLYPH_FOLDER_ENABLED = 49 |
Definition at line 89 of file class.tpl.aestan.php.
const TplAestan::GLYPH_FOLDER_OPEN = 2 |
Definition at line 50 of file class.tpl.aestan.php.
Referenced by getItemExplore().
const TplAestan::GLYPH_GHOSTSCRIPT = 56 |
Definition at line 95 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_GIT = 26 |
Definition at line 71 of file class.tpl.aestan.php.
Referenced by TplAppGit\getMenuGit(), and TplAppGit\getMenuGitRepos().
const TplAestan::GLYPH_HOSTSEDITOR = 39 |
Definition at line 83 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_IMAGEMAGICK = 41 |
Definition at line 84 of file class.tpl.aestan.php.
const TplAestan::GLYPH_LIGHT = 25 |
Definition at line 70 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const TplAestan::GLYPH_NETWORK = 29 |
Definition at line 73 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const TplAestan::GLYPH_NGROK = 57 |
Definition at line 96 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_NODEJS = 28 |
Definition at line 72 of file class.tpl.aestan.php.
const TplAestan::GLYPH_NOTEPAD2 = 42 |
Definition at line 85 of file class.tpl.aestan.php.
const TplAestan::GLYPH_PASSWORD = 45 |
Definition at line 86 of file class.tpl.aestan.php.
Referenced by TplAppMariadb\getMenuMariadbService(), TplAppMysql\getMenuMysqlService(), and TplAppPostgresql\getMenuPostgresqlService().
const TplAestan::GLYPH_PAUSE = 10 |
Definition at line 57 of file class.tpl.aestan.php.
const TplAestan::GLYPH_PEAR = 38 |
Definition at line 82 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_PERL = 55 |
Definition at line 94 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_PWGEN = 58 |
Definition at line 97 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_PYTHON = 50 |
Definition at line 90 of file class.tpl.aestan.php.
Referenced by TplAppPython\getMenuPython().
const TplAestan::GLYPH_PYTHON_CP = 51 |
Definition at line 91 of file class.tpl.aestan.php.
Referenced by TplAppPython\getMenuPython().
const TplAestan::GLYPH_REBUILD_INI = 60 |
Definition at line 99 of file class.tpl.aestan.php.
Referenced by TplAppRebuildIni\process().
const TplAestan::GLYPH_RED_LIGHT = 36 |
Definition at line 80 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheService(), and TplAppFilezilla\getMenuFilezillaService().
const TplAestan::GLYPH_RELOAD = 12 |
Definition at line 59 of file class.tpl.aestan.php.
Referenced by getActionService(), TplService\getItemRestart(), TplAppGit\getMenuGit(), and TplAppReload\process().
const TplAestan::GLYPH_RESTART = 34 |
Definition at line 78 of file class.tpl.aestan.php.
const TplAestan::GLYPH_RUBY = 52 |
Definition at line 92 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_SERVICE_ALL_RUNNING = 16 |
Definition at line 61 of file class.tpl.aestan.php.
const TplAestan::GLYPH_SERVICE_INSTALL = 8 |
Definition at line 55 of file class.tpl.aestan.php.
Referenced by TplService\getItemInstall(), TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const TplAestan::GLYPH_SERVICE_NONE_RUNNING = 18 |
Definition at line 63 of file class.tpl.aestan.php.
const TplAestan::GLYPH_SERVICE_REMOVE = 7 |
Definition at line 54 of file class.tpl.aestan.php.
Referenced by TplService\getItemRemove(), TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const TplAestan::GLYPH_SERVICE_SOME_RUNNING = 17 |
Definition at line 62 of file class.tpl.aestan.php.
const TplAestan::GLYPH_SERVICES_RESTART = 22 |
Definition at line 67 of file class.tpl.aestan.php.
Referenced by TplAppServices\process().
const TplAestan::GLYPH_SERVICES_START = 24 |
Definition at line 69 of file class.tpl.aestan.php.
Referenced by TplAppServices\process().
const TplAestan::GLYPH_SERVICES_STOP = 23 |
Definition at line 68 of file class.tpl.aestan.php.
Referenced by TplAppServices\process().
const TplAestan::GLYPH_SSL_CERTIFICATE = 35 |
Definition at line 79 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::GLYPH_START = 9 |
Definition at line 56 of file class.tpl.aestan.php.
Referenced by getActionService(), and TplService\getItemStart().
const TplAestan::GLYPH_STOP = 11 |
Definition at line 58 of file class.tpl.aestan.php.
Referenced by getActionService(), and TplService\getItemStop().
const TplAestan::GLYPH_TRASHCAN = 32 |
Definition at line 76 of file class.tpl.aestan.php.
Referenced by TplAppClearFolders\process().
const TplAestan::GLYPH_UPDATE = 33 |
Definition at line 77 of file class.tpl.aestan.php.
Referenced by TplApp\getSectionMenuRight().
const TplAestan::GLYPH_WARNING = 19 |
Definition at line 64 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheVersions(), TplAppPhp\getMenuPhpSettings(), TplAppPhp\getMenuPhpVersions(), and TplAppPhp\getSubmenuPhpSettings().
const TplAestan::GLYPH_WEB_PAGE = 30 |
Definition at line 74 of file class.tpl.aestan.php.
Referenced by TplAppMailhog\getMenuMailhog(), and TplAppMailpit\getMenuMailpit().
const TplAestan::GLYPH_XLIGHT = 59 |
Definition at line 98 of file class.tpl.aestan.php.
const TplAestan::GLYPH_YARN = 54 |
Definition at line 93 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const TplAestan::IMG_BAR_PICTURE = 'bar.dat' |
Definition at line 108 of file class.tpl.aestan.php.
const TplAestan::IMG_GLYPH_SPRITES = 'sprites.dat' |
Definition at line 109 of file class.tpl.aestan.php.
const TplAestan::SERVICE_RESTART = 'restart' |
Definition at line 104 of file class.tpl.aestan.php.
const TplAestan::SERVICE_START = 'startresume' |
Definition at line 102 of file class.tpl.aestan.php.
const TplAestan::SERVICE_STOP = 'stop' |
Definition at line 103 of file class.tpl.aestan.php.
const TplAestan::SERVICES_CLOSE = 'closeservices' |
Definition at line 105 of file class.tpl.aestan.php.