wsdlcache Class Reference

List of all members.

Public Member Functions

 wsdlcache ($cache_dir='.', $cache_lifetime=0)
 createFilename ($wsdl)
 debug ($string)
 get ($wsdl)
 obtainMutex ($filename, $mode)
 put ($wsdl_instance)
 releaseMutex ($filename)
 remove ($wsdl)

Detailed Description

caches instances of the wsdl class

Author:
Scott Nichol <snichol@computer.org>

Ingo Fischer <ingo@apollon.de>

Version:
$Id$ public


Member Function Documentation

wsdlcache::wsdlcache ( cache_dir = '.',
cache_lifetime = 0 
)

constructor

Parameters:
string $cache_dir directory for cache-files
integer $cache_lifetime lifetime for caching-files in seconds or 0 for unlimited public

wsdlcache::createFilename ( wsdl  ) 

creates the filename used to cache a wsdl instance

Parameters:
string $wsdl The URL of the wsdl instance
Returns:
string The filename used to cache the instance private

wsdlcache::debug ( string  ) 

adds debug data to the class level debug string

Parameters:
string $string debug data private

wsdlcache::get ( wsdl  ) 

gets a wsdl instance from the cache

Parameters:
string $wsdl The URL of the wsdl instance
Returns:
object wsdl The cached wsdl instance, null if the instance is not in the cache public

wsdlcache::obtainMutex ( filename,
mode 
)

obtains the local mutex

Parameters:
string $filename The Filename of the Cache to lock
string $mode The open-mode ("r" or "w") or the file - affects lock-mode
Returns:
boolean Lock successfully obtained ?! private

wsdlcache::put ( wsdl_instance  ) 

adds a wsdl instance to the cache

Parameters:
object wsdl $wsdl_instance The wsdl instance to add
Returns:
boolean WSDL successfully cached public

wsdlcache::releaseMutex ( filename  ) 

releases the local mutex

Parameters:
string $filename The Filename of the Cache to lock
Returns:
boolean Lock successfully released private

wsdlcache::remove ( wsdl  ) 

removes a wsdl instance from the cache

Parameters:
string $wsdl The URL of the wsdl instance
Returns:
boolean Whether there was an instance to remove public


The documentation for this class was generated from the following file:
Generated on Thu Nov 2 00:27:21 2006 for XOOPS Cube Legacy by  doxygen 1.5.1