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 127 of file class.t3lib_svbase.php.
|
Clean up the service.
Definition at line 705 of file class.t3lib_svbase.php. References unlinkTempFiles(). Referenced by init(). |
|
check the availability of external programs
Definition at line 379 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 429 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 403 of file class.t3lib_svbase.php. References t3lib_extMgm::deactivateService(). |
|
Logs debug messages to t3lib_div::devLog()
Definition at line 261 of file class.t3lib_svbase.php. References t3lib_div::devLog(). |
|
Removes the last error from the error stack.
Definition at line 290 of file class.t3lib_svbase.php. |
|
Puts an error on the error stack. Calling without parameter adds a general error.
Definition at line 275 of file class.t3lib_svbase.php. Referenced by checkExec(), checkInputFile(), readFile(), tempFile(), and writeFile(). |
|
Returns all error messages as array.
Definition at line 332 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 578 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 593 of file class.t3lib_svbase.php. References checkInputFile(), and writeFile(). |
|
Returns the last error number from the error stack.
Definition at line 302 of file class.t3lib_svbase.php. References $error. Referenced by init(). |
|
Returns the last array from the error stack.
Definition at line 350 of file class.t3lib_svbase.php. |
|
Returns the last message from the error stack.
Definition at line 317 of file class.t3lib_svbase.php. References $error. |
|
Get the output content.
Definition at line 628 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 642 of file class.t3lib_svbase.php. References writeFile(). |
|
Returns internal information array for service
Definition at line 193 of file class.t3lib_svbase.php. |
|
Returns the service key of the service
Definition at line 203 of file class.t3lib_svbase.php. |
|
Returns service configuration values from the $TYPO3_CONF_VARS['SVCONF'] array
Definition at line 226 of file class.t3lib_svbase.php. Referenced by tx_sv_authbase::initAuth(). |
|
Returns the title of the service
Definition at line 213 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 666 of file class.t3lib_svbase.php. References __destruct(), checkExec(), getLastError(), and reset(). |
|
Read content from a file a file.
Definition at line 450 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 519 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 690 of file class.t3lib_svbase.php. References resetErrors(), and unlinkTempFiles(). Referenced by getErrorMsgArray(), and init(). |
|
Reset the error stack.
Definition at line 359 of file class.t3lib_svbase.php. Referenced by reset(). |
|
Set the input content for service processing.
Definition at line 551 of file class.t3lib_svbase.php. |
|
Set the input file name for service processing.
Definition at line 565 of file class.t3lib_svbase.php. |
|
Set the output file name.
Definition at line 618 of file class.t3lib_svbase.php. |
|
Create a temporary file.
Definition at line 501 of file class.t3lib_svbase.php. References errorPush(), registerTempFile(), and t3lib_div::tempnam(). Referenced by writeFile(). |
|
Delete registered temporary files.
Definition at line 529 of file class.t3lib_svbase.php. References t3lib_div::unlink_tempfile(). Referenced by __destruct(), and reset(). |
|
Write content to a file.
Definition at line 475 of file class.t3lib_svbase.php. References errorPush(), t3lib_div::isAllowedAbsPath(), and tempFile(). Referenced by getInputFile(), and getOutputFile(). |
|
error stack Definition at line 137 of file class.t3lib_svbase.php. Referenced by getErrorMsgArray(), getLastError(), getLastErrorMsg(), and tx_sv_authbase::writelog(). |
|
service description array Definition at line 132 of file class.t3lib_svbase.php. |
|
The content that should be processed. Definition at line 159 of file class.t3lib_svbase.php. |
|
The file that should be processed. Definition at line 154 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 164 of file class.t3lib_svbase.php. |
|
The output content. That's what the services produced as result. Definition at line 149 of file class.t3lib_svbase.php. Referenced by readFile(). |
|
The file where the output should be written to. Definition at line 169 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 142 of file class.t3lib_svbase.php. |