Solutions Open Source

Référence de la classe t3lib_exec

Liste de tous les membres

Fonctions membres publiques

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


Documentation des fonctions membres

t3lib_exec::checkCommand ( cmd,
handler = '' 
)

Checks if a command is valid or not updates global vars

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

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

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

Paramètres:
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"
Renvoie:
mixed returns command string, or false if cmd is not found, or -1 if the handler is not found

t3lib_exec::addPaths ( paths  ) 

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

Paramètres:
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).
Renvoie:
void

t3lib_exec::getPaths ( addInvalid = false  ) 

Returns an array of search paths

Paramètres:
boolean If set the array contains invalid path too. Then the key is the path and the value is empty
Renvoie:
array Array of search paths (empty if exec is disabled)

t3lib_exec::_init (  ) 

Initialization, internal

Renvoie:
void

t3lib_exec::_initPaths ( paths = ''  ) 

Init and extend the preset paths with own

Paramètres:
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).
Renvoie:
void

t3lib_exec::_getConfiguredApps (  ) 

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

Renvoie:
array Array of commands and path

t3lib_exec::_getPaths (  ) 

Set the search paths from different sources, internal

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

t3lib_exec::_fixPath ( path  ) 

Set a path to the right format

Paramètres:
string Input path
Renvoie:
string Output path


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:42:11 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3