TYPO3 API  SVNRelease
Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes
t3lib_exec Class Reference

List of all members.

Static Public Member Functions

static checkCommand ($cmd, $handler= '')
static getCommand ($cmd, $handler= '', $handlerOpt= '')
static addPaths ($paths)
static getPaths ($addInvalid=FALSE)

Static Protected Member Functions

static init ()
static initPaths ($paths= '')
static getConfiguredApps ()
static getPathsInternal ()
static fixPath ($path)

Static Protected Attributes

static $initialized = FALSE
static $applications = array()
static $paths = NULL

Detailed Description

Definition at line 82 of file class.t3lib_exec.php.


Member Function Documentation

static t3lib_exec::addPaths ( paths) [static]

Extend the preset paths. This way an extension can install an executable and provide the path to t3lib_exec.

Parameters:
stringcomma separated list of extra paths where a command should be searched. Relative paths (without leading "/") are prepend with site root path (PATH_site).
Returns:
void

Definition at line 215 of file class.t3lib_exec.php.

References $paths, and initPaths().

static t3lib_exec::checkCommand ( cmd,
handler = '' 
) [static]

Checks if a command is valid or not, updates global variables

Parameters:
stringthe command that should be executed. eg: "convert"
stringexecuter for the command. eg: "perl"
Returns:
boolean false if cmd is not found, or -1 if the handler is not found

Definition at line 112 of file class.t3lib_exec.php.

References t3lib_utility_Command\exec().

Referenced by t3lib_svbase\checkExec(), and t3lib_extMgm\findService().

static t3lib_exec::fixPath ( path) [static, protected]

Set a path to the right format

Parameters:
stringInput path
Returns:
string Output path

Definition at line 387 of file class.t3lib_exec.php.

Referenced by getPathsInternal().

static t3lib_exec::getCommand ( cmd,
handler = '',
handlerOpt = '' 
) [static]

Returns a command string for exec(), system()

Parameters:
stringthe command that should be executed. eg: "convert"
stringhandler (executor) for the command. eg: "perl"
stringoptions for the handler, like '-w' for "perl"
Returns:
mixed returns command string, or false if cmd is not found, or -1 if the handler is not found

Definition at line 184 of file class.t3lib_exec.php.

Referenced by tx_rsaauth_cmdline_backend\__construct().

static t3lib_exec::getConfiguredApps ( ) [static, protected]

Processes and returns the paths from $GLOBALS['TYPO3_CONF_VARS']['SYS']['binSetup']

Returns:
array Array of commands and path

Definition at line 312 of file class.t3lib_exec.php.

References $GLOBALS, and t3lib_div\trimExplode().

Referenced by init().

static t3lib_exec::getPaths ( addInvalid = FALSE) [static]

Returns an array of search paths

Parameters:
booleanIf set the array contains invalid path too. Then the key is the path and the value is empty
Returns:
array Array of search paths (empty if exec is disabled)

Definition at line 226 of file class.t3lib_exec.php.

References $paths.

Referenced by tx_sv_reports_ServicesList\renderExecutablesSearchPathList().

static t3lib_exec::getPathsInternal ( ) [static, protected]

Sets the search paths from different sources, internal

Returns:
array Array of absolute paths (keys and values are equal)

Definition at line 334 of file class.t3lib_exec.php.

References $GLOBALS, fixPath(), and t3lib_div\trimExplode().

Referenced by initPaths().

static t3lib_exec::init ( ) [static, protected]

Initializes this class

Returns:
void

Definition at line 249 of file class.t3lib_exec.php.

References $GLOBALS, getConfiguredApps(), and initPaths().

static t3lib_exec::initPaths ( paths = '') [static, protected]

Initializes and extends the preset paths with own

Parameters:
stringComma seperated list of extra paths where a command should be searched. Relative paths (without leading "/") are prepend with site root path (PATH_site).
Returns:
void

Definition at line 268 of file class.t3lib_exec.php.

References $paths, getPathsInternal(), and t3lib_div\trimExplode().

Referenced by addPaths(), and init().


Member Data Documentation

t3lib_exec::$applications = array() [static, protected]

Definition at line 96 of file class.t3lib_exec.php.

t3lib_exec::$initialized = FALSE [static, protected]

Tells if object is already initialized

Definition at line 85 of file class.t3lib_exec.php.

t3lib_exec::$paths = NULL [static, protected]

Definition at line 103 of file class.t3lib_exec.php.

Referenced by addPaths(), getPaths(), and initPaths().


The documentation for this class was generated from the following file: