SetaPDF_Signer::cleanTmpDirectory()
Description
class SetaPDF_Signer extends SetaPDF {
boolean cleanTmpDirectory ( void )
}
This methods deletes olded files in the temporary directory.
If the API causes an error it could be that temporary files will remain in the given temporary directory.
In the PHP 5 version this method is called automatically by the __destruct()-method.
In PHP 4 you can call it your own or register it as a shutdown function:
register_shutdown_function(array(&$signerInstance,'cleanTmpDirectory'));
The method makes use of the glob()-function. If this function is disabled cause of any security reason you can define your own function by setting it in the SetaPDF::$globFunctionName property. An example of a replacement function can be found in the user contributed notes on php.net
By default temporary files which are older than 60 seconds will be deleted. To adjust this value, change the SetaPDF::$tmpFilesLifetime property.
Return value
True if files were deleted. False if no file was deleted.