Documentation TYPO3 par Ameos |
Public Member Functions | |
getServiceInfo () | |
getServiceKey () | |
getServiceTitle () | |
getServiceOption ($optionName, $defaultValue='', $includeDefaultConfig=TRUE) | |
devLog ($msg, $severity=0, $dataVar=FALSE) | |
errorPush ($errNum=T3_ERR_SV_GENERAL, $errMsg='Unspecified error occured') | |
errorPull () | |
getLastError () | |
getLastErrorMsg () | |
getErrorMsgArray () | |
getLastErrorArray () | |
resetErrors () | |
checkExec ($progList) | |
deactivateService () | |
checkInputFile ($absFile) | |
readFile ($absFile, $length=0) | |
writeFile ($content, $absFile='') | |
tempFile ($filePrefix) | |
registerTempFile ($absFile) | |
unlinkTempFiles () | |
setInput ($content, $type='') | |
setInputFile ($absFile, $type='') | |
getInput () | |
getInputFile ($createFile='') | |
setOutputFile ($absFile) | |
getOutput () | |
getOutputFile ($absFile='') | |
init () | |
reset () | |
__destruct () | |
Public Attributes | |
$info = array() | |
$error = array() | |
$writeDevLog = false | |
$out = '' | |
$inputFile = '' | |
$inputContent = '' | |
$inputType = '' | |
$outputFile = '' |
Definition at line 125 of file class.t3lib_svbase.php.
|
Clean up the service.
Definition at line 703 of file class.t3lib_svbase.php. References unlinkTempFiles(). Referenced by init(). |
|
check the availability of external programs
Definition at line 377 of file class.t3lib_svbase.php. References t3lib_exec::checkCommand(), errorPush(), and t3lib_div::trimExplode(). Referenced by init(). |
|
Check if a file exists and is readable.
Definition at line 427 of file class.t3lib_svbase.php. References errorPush(), and t3lib_div::isAllowedAbsPath(). Referenced by getInputFile(), and readFile(). |
|
Deactivate the service. Use this if the service fails at runtime and will not be available.
Definition at line 401 of file class.t3lib_svbase.php. References t3lib_extMgm::deactivateService(). |
|
Logs debug messages to t3lib_div::devLog()
Definition at line 259 of file class.t3lib_svbase.php. References t3lib_div::devLog(). |
|
Removes the last error from the error stack.
Definition at line 288 of file class.t3lib_svbase.php. |
|
Puts an error on the error stack. Calling without parameter adds a general error.
Definition at line 273 of file class.t3lib_svbase.php. Referenced by checkExec(), checkInputFile(), readFile(), tempFile(), and writeFile(). |
|
Returns all error messages as array.
Definition at line 330 of file class.t3lib_svbase.php. |
|
Get the input content. Will be read from input file if needed. (That is if ->inputContent is empty and ->inputFile is not)
Definition at line 576 of file class.t3lib_svbase.php. References readFile(). |
|
Get the input file name. If the content was set by setContent a file will be created.
Definition at line 591 of file class.t3lib_svbase.php. References checkInputFile(), and writeFile(). |
|
Returns the last error number from the error stack.
Definition at line 300 of file class.t3lib_svbase.php. References $error. Referenced by init(). |
|
Returns the last array from the error stack.
Definition at line 348 of file class.t3lib_svbase.php. |
|
Returns the last message from the error stack.
Definition at line 315 of file class.t3lib_svbase.php. References $error. |
|
Get the output content.
Definition at line 626 of file class.t3lib_svbase.php. References readFile(). |
|
Get the output file name. If no output file is set, the ->out buffer is written to the file given by input parameter filename
Definition at line 640 of file class.t3lib_svbase.php. References writeFile(). |
|
Returns internal information array for service
Definition at line 191 of file class.t3lib_svbase.php. |
|
Returns the service key of the service
Definition at line 201 of file class.t3lib_svbase.php. |
|
Returns service configuration values from the $TYPO3_CONF_VARS['SVCONF'] array
Definition at line 224 of file class.t3lib_svbase.php. Referenced by tx_sv_authbase::initAuth(). |
|
Returns the title of the service
Definition at line 211 of file class.t3lib_svbase.php. |
|
Initialization of the service. The class have to do a strict check if the service is available. example: check if the perl interpreter is available which is needed to run an extern perl script.
Definition at line 664 of file class.t3lib_svbase.php. References __destruct(), checkExec(), getLastError(), and reset(). |
|
Read content from a file a file.
Definition at line 448 of file class.t3lib_svbase.php. References $out, checkInputFile(), and errorPush(). Referenced by getInput(), and getOutput(). |
|
Register file which should be deleted afterwards.
Definition at line 517 of file class.t3lib_svbase.php. Referenced by tempFile(). |
|
Resets the service. Will be called by init(). Should be used before every use if a service instance is used multiple times.
Definition at line 688 of file class.t3lib_svbase.php. References resetErrors(), and unlinkTempFiles(). Referenced by getErrorMsgArray(), and init(). |
|
Reset the error stack.
Definition at line 357 of file class.t3lib_svbase.php. Referenced by reset(). |
|
Set the input content for service processing.
Definition at line 549 of file class.t3lib_svbase.php. |
|
Set the input file name for service processing.
Definition at line 563 of file class.t3lib_svbase.php. |
|
Set the output file name.
Definition at line 616 of file class.t3lib_svbase.php. |
|
Create a temporary file.
Definition at line 499 of file class.t3lib_svbase.php. References errorPush(), registerTempFile(), and t3lib_div::tempnam(). Referenced by writeFile(). |
|
Delete registered temporary files.
Definition at line 527 of file class.t3lib_svbase.php. References t3lib_div::unlink_tempfile(). Referenced by __destruct(), and reset(). |
|
Write content to a file.
Definition at line 473 of file class.t3lib_svbase.php. References errorPush(), t3lib_div::isAllowedAbsPath(), and tempFile(). Referenced by getInputFile(), and getOutputFile(). |
|
error stack Definition at line 135 of file class.t3lib_svbase.php. Referenced by getErrorMsgArray(), getLastError(), getLastErrorMsg(), and tx_sv_authbase::writelog(). |
|
service description array Definition at line 130 of file class.t3lib_svbase.php. |
|
The content that should be processed. Definition at line 157 of file class.t3lib_svbase.php. |
|
The file that should be processed. Definition at line 152 of file class.t3lib_svbase.php. |
|
The type of the input content (or file). Might be the same as the service subtypes. Definition at line 162 of file class.t3lib_svbase.php. |
|
The output content. That's what the services produced as result. Definition at line 147 of file class.t3lib_svbase.php. Referenced by readFile(). |
|
The file where the output should be written to. Definition at line 167 of file class.t3lib_svbase.php. |
|
Defines if debug messages should be written with t3lib_div::devLog Reimplemented in tx_sv_authbase. Definition at line 140 of file class.t3lib_svbase.php. |