2024.8.23
|
Public Member Functions | |
__construct ($id, $type) | |
getExe () | |
getExeConsole () | |
reload ($id=null, $type=null) | |
setVersion ($version) | |
Public Member Functions inherited from Module | |
__toString () | |
getCurrentPath () | |
getId () | |
getName () | |
getRelease () | |
getRootPath () | |
getSymlinkPath () | |
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 | |
const | BUNDLE_RELEASE = 'bundleRelease' |
Private Attributes | |
$exe | |
$exeConsole | |
Additional Inherited Members | |
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 | |
$currentPath | |
$enable | |
$name | |
$release = 'N/A' | |
$rootPath | |
$symlinkPath | |
$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.
ToolGhostscript::__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 32 of file class.tool.ghostscript.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
ToolGhostscript::getExe | ( | ) |
Gets the path to the Ghostscript executable.
Definition at line 95 of file class.tool.ghostscript.php.
References $exe.
ToolGhostscript::getExeConsole | ( | ) |
Gets the path to the Ghostscript console executable.
Definition at line 104 of file class.tool.ghostscript.php.
References $exeConsole.
ToolGhostscript::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 43 of file class.tool.ghostscript.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_EXE_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, Lang\GHOSTSCRIPT, LOCAL_CFG_EXE, LOCAL_CFG_EXE_CONSOLE, Util\logError(), Util\logInfo(), and Util\logReloadClass().
Referenced by __construct(), and setVersion().
ToolGhostscript::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 83 of file class.tool.ghostscript.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 23 of file class.tool.ghostscript.php.
Referenced by getExe().
|
private |
Definition at line 24 of file class.tool.ghostscript.php.
Referenced by getExeConsole().
const ToolGhostscript::LOCAL_CFG_EXE = 'ghostscriptExe' |
Definition at line 20 of file class.tool.ghostscript.php.
Referenced by reload().
const ToolGhostscript::LOCAL_CFG_EXE_CONSOLE = 'ghostscriptExeConsole' |
Definition at line 21 of file class.tool.ghostscript.php.
Referenced by reload().
const ToolGhostscript::ROOT_CFG_VERSION = 'ghostscriptVersion' |
Definition at line 19 of file class.tool.ghostscript.php.