PHP 클래스 EmbeddedServer, ojs

파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
_canExecScripts ( ) : boolean Check whether script execution is enabled.
_getLogFileName ( ) : string Get the embedded server log.
_getPluginDirectory ( ) : string Find the plugin directory.
_getScriptDirectory ( ) : string Find the script directory.
_getScriptPath ( $script ) : string Get platform-specific script name with extension.
_runScript ( $script, $log = true, $parameters = '' ) : boolean Run the given script.
isAvailable ( ) : boolean Check whether an embedded server is installed and we can manipulate it through PHP.
isInstalled ( ) : boolean Check whether the embedded server is installed.
isRunning ( ) : boolean Check whether the embedded server is currently running.
start ( ) : boolean Start the embedded server.
stop ( ) : boolean Stop the embedded server.
stopAndWait ( ) : boolean Stop the embedded server and wait until it actually exited.

메소드 상세

__construct() 공개 메소드

public __construct ( )

_canExecScripts() 공개 메소드

Check whether script execution is enabled.
public _canExecScripts ( ) : boolean
리턴 boolean

_getLogFileName() 공개 메소드

Get the embedded server log.
public _getLogFileName ( ) : string
리턴 string

_getPluginDirectory() 공개 메소드

Find the plugin directory.
public _getPluginDirectory ( ) : string
리턴 string

_getScriptDirectory() 공개 메소드

Find the script directory.
public _getScriptDirectory ( ) : string
리턴 string

_getScriptPath() 공개 메소드

Get platform-specific script name with extension.
public _getScriptPath ( $script ) : string
$script string The script name without extension.
리턴 string script name with platform specific extension.

_runScript() 공개 메소드

Run the given script.
public _runScript ( $script, $log = true, $parameters = '' ) : boolean
$script string The script to be executed (without platform specific extension).
$log boolean Whether to log the script execution. Logging is NOT supported on Windows due to locking issues with the log file when being started through 'start /b'.
$parameters string Optional script parameters.
리턴 boolean true if the command executed successfully, otherwise false.

isAvailable() 공개 메소드

Check whether an embedded server is installed and we can manipulate it through PHP.
public isAvailable ( ) : boolean
리턴 boolean

isInstalled() 공개 메소드

Check whether the embedded server is installed.
public isInstalled ( ) : boolean
리턴 boolean

isRunning() 공개 메소드

Check whether the embedded server is currently running.
public isRunning ( ) : boolean
리턴 boolean true, if the server is running, otherwise false.

start() 공개 메소드

NB: The web service can take quite a bit longer than the process to start. So if you want to be sure you should instantiate SolrWebService and wait until it's status is SOLR_STATUS_ONLINE.
public start ( ) : boolean
리턴 boolean true if the server started, otherwise false.

stop() 공개 메소드

Stop the embedded server.
public stop ( ) : boolean
리턴 boolean true if the server stopped, otherwise false.

stopAndWait() 공개 메소드

Stop the embedded server and wait until it actually exited.
public stopAndWait ( ) : boolean
리턴 boolean true if the server stopped, otherwise false.