![]() |
Bearsampp 2025.8.29
|
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 46 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 254 of file class.tpl.aestan.php.
References $bearsamppLang, $result, 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 334 of file class.tpl.aestan.php.
References getActionService().
|
static |
Returns a string representing a close services action.
Definition at line 355 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 290 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 312 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 116 of file class.tpl.aestan.php.
|
static |
Returns a string representing a service restart item.
string | $service | The service name. |
Definition at line 345 of file class.tpl.aestan.php.
References getActionService().
Referenced by TplAppApache\getMenuApacheService(), 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 365 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 301 of file class.tpl.aestan.php.
References getActionService().
Referenced by TplAppApache\getMenuApacheService(), 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 323 of file class.tpl.aestan.php.
References getActionService().
Referenced by TplAppApache\getMenuApacheService(), 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 141 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 220 of file class.tpl.aestan.php.
Referenced by getItemConsoleZ(), getItemLink(), getItemNotepad(), TplAppGit\getMenuGit(), 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 237 of file class.tpl.aestan.php.
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 176 of file class.tpl.aestan.php.
References $bearsamppConfig, $bearsamppRoot, and getItemExe().
Referenced by TplAppApache\getMenuApache(), TplAppApps\getMenuApps(), 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 199 of file class.tpl.aestan.php.
References $bearsamppConfig, and getItemExe().
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheService(), TplAppLogs\getMenuLogs(), 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 125 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheAlias(), TplAppApache\getMenuApacheService(), TplAppApache\getMenuApacheVhosts(), TplAppGit\getMenuGit(), 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 390 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 429 of file class.tpl.aestan.php.
Referenced by TplApp\process().
|
static |
Returns a string representing the right menu settings section.
Definition at line 409 of file class.tpl.aestan.php.
Referenced by TplApp\process().
|
static |
Returns a string representing the messages section.
Definition at line 375 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 GLYPH_ABOUT = 21 |
Definition at line 67 of file class.tpl.aestan.php.
Referenced by TplApp\getSectionMenuRight().
const GLYPH_ADD = 1 |
Definition at line 50 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheAlias(), and TplAppApache\getMenuApacheVhosts().
const GLYPH_BROWSER = 5 |
Definition at line 53 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApache(), TplAppMailpit\getMenuMailpit(), TplAppMariadb\getMenuMariadb(), TplAppMemcached\getMenuMemcached(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppXlight\getMenuXlight(), and TplAppBrowser\process().
const GLYPH_BRUNO = 61 |
Definition at line 98 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_CHECK = 13 |
Definition at line 61 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheModules(), TplAppApache\getMenuApacheVersions(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), 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 GLYPH_COMPOSER = 37 |
Definition at line 82 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_CONSOLEZ = 0 |
Definition at line 49 of file class.tpl.aestan.php.
Referenced by TplAppMariadb\getMenuMariadb(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPostgresql\getMenuPostgresql(), and TplAppTools\getMenuTools().
const GLYPH_DEBUG = 31 |
Definition at line 76 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheDebug(), TplAppMariadb\getMenuMariadbDebug(), TplAppMysql\getMenuMysqlDebug(), and TplAppPostgresql\getMenuPostgresqlDebug().
const GLYPH_EXIT = 20 |
Definition at line 66 of file class.tpl.aestan.php.
Referenced by TplAppExit\process().
const GLYPH_FILE = 6 |
Definition at line 54 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheAlias(), and TplAppApache\getMenuApacheVhosts().
const GLYPH_FOLDER_CLOSE = 3 |
Definition at line 52 of file class.tpl.aestan.php.
Referenced by TplApp\getMenu(), TplApp\getMenuEnable(), TplAppPhp\getMenuPhpSettings(), and TplAppPhp\getSubmenuPhpSettings().
const GLYPH_FOLDER_DISABLED = 48 |
Definition at line 88 of file class.tpl.aestan.php.
Referenced by TplApp\getMenuEnable().
const GLYPH_FOLDER_ENABLED = 49 |
Definition at line 89 of file class.tpl.aestan.php.
const GLYPH_FOLDER_OPEN = 2 |
Definition at line 51 of file class.tpl.aestan.php.
const GLYPH_GHOSTSCRIPT = 56 |
Definition at line 93 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_GIT = 26 |
Definition at line 72 of file class.tpl.aestan.php.
Referenced by TplAppGit\getMenuGit(), and TplAppGit\getMenuGitRepos().
const GLYPH_HOSTSEDITOR = 39 |
Definition at line 84 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_IMAGEMAGICK = 41 |
Definition at line 85 of file class.tpl.aestan.php.
const GLYPH_LIGHT = 25 |
Definition at line 71 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const GLYPH_NETWORK = 29 |
Definition at line 74 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const GLYPH_NGROK = 57 |
Definition at line 94 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_NODEJS = 28 |
Definition at line 73 of file class.tpl.aestan.php.
const GLYPH_NOTEPAD2 = 42 |
Definition at line 86 of file class.tpl.aestan.php.
const GLYPH_PASSWORD = 45 |
Definition at line 87 of file class.tpl.aestan.php.
Referenced by TplAppMariadb\getMenuMariadbService(), TplAppMysql\getMenuMysqlService(), and TplAppPostgresql\getMenuPostgresqlService().
const GLYPH_PAUSE = 10 |
Definition at line 58 of file class.tpl.aestan.php.
const GLYPH_PEAR = 38 |
Definition at line 83 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_PERL = 55 |
Definition at line 92 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_PWGEN = 58 |
Definition at line 95 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_PYTHON = 50 |
Definition at line 90 of file class.tpl.aestan.php.
Referenced by TplAppPython\getMenuPython().
const GLYPH_REBUILD_INI = 60 |
Definition at line 97 of file class.tpl.aestan.php.
Referenced by TplAppRebuildIni\process().
const GLYPH_RED_LIGHT = 36 |
Definition at line 81 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheService().
const GLYPH_RELOAD = 12 |
Definition at line 60 of file class.tpl.aestan.php.
Referenced by TplService\getItemRestart(), TplAppGit\getMenuGit(), and TplAppReload\process().
const GLYPH_RESTART = 34 |
Definition at line 79 of file class.tpl.aestan.php.
const GLYPH_RUBY = 52 |
Definition at line 91 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_SERVICE_ALL_RUNNING = 16 |
Definition at line 62 of file class.tpl.aestan.php.
const GLYPH_SERVICE_INSTALL = 8 |
Definition at line 56 of file class.tpl.aestan.php.
Referenced by TplService\getItemInstall(), TplAppApache\getMenuApacheService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const GLYPH_SERVICE_NONE_RUNNING = 18 |
Definition at line 64 of file class.tpl.aestan.php.
const GLYPH_SERVICE_REMOVE = 7 |
Definition at line 55 of file class.tpl.aestan.php.
Referenced by TplService\getItemRemove(), TplAppApache\getMenuApacheService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const GLYPH_SERVICE_SOME_RUNNING = 17 |
Definition at line 63 of file class.tpl.aestan.php.
const GLYPH_SERVICES_RESTART = 22 |
Definition at line 68 of file class.tpl.aestan.php.
Referenced by TplAppServices\process().
const GLYPH_SERVICES_START = 24 |
Definition at line 70 of file class.tpl.aestan.php.
Referenced by TplAppServices\process().
const GLYPH_SERVICES_STOP = 23 |
Definition at line 69 of file class.tpl.aestan.php.
Referenced by TplAppServices\process().
const GLYPH_SSL_CERTIFICATE = 35 |
Definition at line 80 of file class.tpl.aestan.php.
Referenced by TplAppTools\getMenuTools().
const GLYPH_START = 9 |
Definition at line 57 of file class.tpl.aestan.php.
Referenced by TplService\getItemStart().
const GLYPH_STOP = 11 |
Definition at line 59 of file class.tpl.aestan.php.
Referenced by TplService\getItemStop().
const GLYPH_TRASHCAN = 32 |
Definition at line 77 of file class.tpl.aestan.php.
Referenced by TplAppClearFolders\process().
const GLYPH_UPDATE = 33 |
Definition at line 78 of file class.tpl.aestan.php.
Referenced by TplApp\getSectionMenuRight().
const GLYPH_WARNING = 19 |
Definition at line 65 of file class.tpl.aestan.php.
Referenced by TplAppApache\getMenuApacheVersions(), TplAppPhp\getMenuPhpSettings(), TplAppPhp\getMenuPhpVersions(), and TplAppPhp\getSubmenuPhpSettings().
const GLYPH_WEB_PAGE = 30 |
Definition at line 75 of file class.tpl.aestan.php.
Referenced by TplAppMailpit\getMenuMailpit().
const GLYPH_XLIGHT = 59 |
Definition at line 96 of file class.tpl.aestan.php.
const IMG_BAR_PICTURE = 'bar.dat' |
Definition at line 107 of file class.tpl.aestan.php.
const IMG_GLYPH_SPRITES = 'sprites.dat' |
Definition at line 108 of file class.tpl.aestan.php.
const SERVICE_RESTART = 'restart' |
Definition at line 103 of file class.tpl.aestan.php.
const SERVICE_START = 'startresume' |
Definition at line 101 of file class.tpl.aestan.php.
const SERVICE_STOP = 'stop' |
Definition at line 102 of file class.tpl.aestan.php.
const SERVICES_CLOSE = 'closeservices' |
Definition at line 104 of file class.tpl.aestan.php.