Documentation TYPO3 par Ameos

t3lib_exec Class Reference

List of all members.

Public Member Functions

 checkCommand ($cmd, $handler='')
 getCommand ($cmd, $handler='', $handlerOpt='')
 addPaths ($paths)
 getPaths ($addInvalid=false)
 _getPaths ()
 _init ()
 _initPaths ($paths='')
 _getOS ()
 _fixPath ($path)

Detailed Description

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


Member Function Documentation

t3lib_exec::_fixPath path  ) 
 

Set a path to the right format

Parameters:
string Input path
Returns:
string Output path

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

Referenced by _getPaths().

t3lib_exec::_getOS  ) 
 

Returns on which OS we're runing

Returns:
string the OS type: "UNIX" or "WIN"

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

Referenced by _getPaths(), and checkCommand().

t3lib_exec::_getPaths  ) 
 

Set the search paths from different sources, internal

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

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

References _fixPath(), _getOS(), and t3lib_div::trimExplode().

Referenced by _initPaths().

t3lib_exec::_init  ) 
 

Initialization, internal

Returns:
void

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

References _initPaths().

Referenced by checkCommand(), getCommand(), and getPaths().

t3lib_exec::_initPaths paths = ''  ) 
 

Init and extend the preset paths with own

Parameters:
string Comma 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 318 of file class.t3lib_exec.php.

References _getPaths(), and t3lib_div::trimExplode().

Referenced by _init(), and addPaths().

t3lib_exec::addPaths paths  ) 
 

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

Parameters:
string comma 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 197 of file class.t3lib_exec.php.

References _initPaths().

t3lib_exec::checkCommand cmd,
handler = ''
 

Checks if a command is valid or not updates global vars

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

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

References _getOS(), and _init().

Referenced by t3lib_svbase::checkExec(), t3lib_extMgm::findService(), and getCommand().

t3lib_exec::getCommand cmd,
handler = '',
handlerOpt = ''
 

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

Parameters:
string the command that should be executed. eg: "convert"
string handler (executor) for the command. eg: "perl"
string options 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 164 of file class.t3lib_exec.php.

References _init(), and checkCommand().

t3lib_exec::getPaths addInvalid = false  ) 
 

Returns an array of search paths

Parameters:
boolean If 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 209 of file class.t3lib_exec.php.

References _init().


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


Généré par TYPO3 Ameos avec  doxygen 1.4.6