![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct ($id, $type) | |
| getExe () | |
| getExeConsole () | |
| reload ($id=null, $type=null) | |
| setVersion ($version) | |
| Public Member Functions inherited from Module | |
| __toString () | |
| getId () | |
| getName () | |
| getRelease () | |
| getType () | |
| getVersion () | |
| getVersionList () | |
| isEnable () | |
| update ($sub=0, $showWindow=false) | |
Data Fields | |
| const | LOCAL_CFG_EXE = 'ghostscriptExe' |
| const | LOCAL_CFG_EXE_CONSOLE = 'ghostscriptExeConsole' |
| const | ROOT_CFG_VERSION = 'ghostscriptVersion' |
| Data Fields inherited from Module | |
| $currentPath | |
| $rootPath | |
| $symlinkPath | |
Private Attributes | |
| $exe | |
| $exeConsole | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Module | |
| static | clearMemoryCache () |
| static | invalidateConfigCacheForPath ($sourcePath) |
| Protected Member Functions inherited from Module | |
| __construct () | |
| replace ($key, $value) | |
| replaceAll ($params) | |
| updateConfig ($version=null, $sub=0, $showWindow=false) | |
| Protected Attributes inherited from Module | |
| $bearsamppConf | |
| $bearsamppConfRaw | |
| $enable | |
| $name | |
| $release = 'N/A' | |
| $version | |
Class ToolGhostscript
This class represents the Ghostscript tool module in the Bearsampp application. It extends the Module class and provides functionalities specific to Ghostscript, such as loading configurations, setting versions, and retrieving executable paths.
Definition at line 17 of file class.tool.ghostscript.php.
| __construct | ( | $id, | |
| $type ) |
Constructor for the ToolGhostscript class.
| string | $id | The ID of the module. |
| string | $type | The type of the module. |
Definition at line 47 of file class.tool.ghostscript.php.
References Module\$id, Module\$type, Log\initClass(), and reload().
| getExe | ( | ) |
Gets the path to the Ghostscript executable.
Definition at line 115 of file class.tool.ghostscript.php.
References $exe.
| getExeConsole | ( | ) |
Gets the path to the Ghostscript console executable.
Definition at line 125 of file class.tool.ghostscript.php.
References $exeConsole.
| reload | ( | $id = null, | |
| $type = null ) |
Reloads the Ghostscript module configuration based on the provided ID and type.
| string | null | $id | The ID of the module. If null, the current ID is used. |
| string | null | $type | The type of the module. If null, the current type is used. |
Reimplemented from Module.
Definition at line 59 of file class.tool.ghostscript.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Log\error(), Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_EXE_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, Lang\GHOSTSCRIPT, Log\info(), and Log\reloadClass().
Referenced by __construct(), and setVersion().
| setVersion | ( | $version | ) |
Sets the version of the Ghostscript module and reloads the configuration.
| string | $version | The version to set. |
Reimplemented from Module.
Definition at line 102 of file class.tool.ghostscript.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 35 of file class.tool.ghostscript.php.
Referenced by getExe().
|
private |
Definition at line 39 of file class.tool.ghostscript.php.
Referenced by getExeConsole().
| const LOCAL_CFG_EXE = 'ghostscriptExe' |
Configuration key for the Ghostscript executable in the local configuration.
Definition at line 26 of file class.tool.ghostscript.php.
| const LOCAL_CFG_EXE_CONSOLE = 'ghostscriptExeConsole' |
Configuration key for the Ghostscript console executable in the local configuration.
Definition at line 30 of file class.tool.ghostscript.php.
| const ROOT_CFG_VERSION = 'ghostscriptVersion' |
Configuration key for the Ghostscript version in the root configuration.
Definition at line 22 of file class.tool.ghostscript.php.