Class wsdlcache

Description

caches instances of the wsdl class

Located in /class.wsdlcache.php (line 13)


	
			
Variable Summary
 string $cache_dir
 integer $cache_lifetime
 string $debug_str
 resource $fplock
Method Summary
 wsdlcache wsdlcache ([string $cache_dir = '.'], integer $cache_lifetime)
 string createFilename (string $wsdl)
 void debug (string $string)
 object wsdl get (string $wsdl)
 boolean obtainMutex (string $filename, string $mode)
 boolean put (object wsdl $wsdl_instance)
 boolean releaseMutex (string $filename)
 boolean remove (string $wsdl)
Variables
string $cache_dir (line 28)
  • access: private
integer $cache_lifetime (line 23)
  • access: private
string $debug_str = '' (line 33)
  • access: public
resource $fplock (line 18)
  • access: private
Methods
Constructor wsdlcache (line 42)

constructor

  • access: public
wsdlcache wsdlcache ([string $cache_dir = '.'], integer $cache_lifetime)
  • string $cache_dir: directory for cache-files
  • integer $cache_lifetime: lifetime for caching-files in seconds or 0 for unlimited
createFilename (line 55)

creates the filename used to cache a wsdl instance

  • return: The filename used to cache the instance
  • access: private
string createFilename (string $wsdl)
  • string $wsdl: The URL of the wsdl instance
debug (line 65)

adds debug data to the class level debug string

  • access: private
void debug (string $string)
  • string $string: debug data
get (line 76)

gets a wsdl instance from the cache

  • return: The cached wsdl instance, null if the instance is not in the cache
  • access: public
object wsdl get (string $wsdl)
  • string $wsdl: The URL of the wsdl instance
obtainMutex (line 114)

obtains the local mutex

  • return: Lock successfully obtained ?!
  • access: private
boolean obtainMutex (string $filename, string $mode)
  • string $filename: The Filename of the Cache to lock
  • string $mode: The open-mode ("r" or "w") or the file - affects lock-mode
put (line 134)

adds a wsdl instance to the cache

  • return: WSDL successfully cached
  • access: public
boolean put (object wsdl $wsdl_instance)
releaseMutex (line 157)

releases the local mutex

  • return: Lock successfully released
  • access: private
boolean releaseMutex (string $filename)
  • string $filename: The Filename of the Cache to lock
remove (line 174)

removes a wsdl instance from the cache

  • return: Whether there was an instance to remove
  • access: public
boolean remove (string $wsdl)
  • string $wsdl: The URL of the wsdl instance

Documentation generated on Wed, 3 Aug 2005 21:29:07 -0400 by phpDocumentor 1.3.0RC3