• Bookmark at: Del.icio.us
  • Bookmark at: Mister Wong
  • Bookmark at: Linkarena
  • Bookmark at: Digg
  • Bookmark at: Yahoo
  • Bookmark at: Google
  • Bookmark at: Icio

Manuals

 

SetaPDF_Parser::cacheHashFunction()

Description

class SetaPDF_Parser {
mixed cacheHashFunction ( [callback $hashFunction=null] ) }

To identify a pdf document the API uses the md5_file()-function by default.

If you want to create your own identification process or if you already know a hash or unique property of the document you can use this method to define an own function/method which will be called when the parser needs the hash.

This hash/value will be used as the directory name in the cache directory (see SetaPDF_Parser::cacheDir()).

The given value will be used as the function parameter of a call_user_func()-call.

This method should be called static.

Parameters

$hashFunction

The function to be called.
(See also informations about the callback type.)

Return Values

The actual value.