ILIAS
Release_4_0_x_branch Revision 61816
|
caches instances of the wsdl class More...
Public Member Functions | |
nusoap_wsdlcache ($cache_dir='.', $cache_lifetime=0) | |
constructor | |
createFilename ($wsdl) | |
creates the filename used to cache a wsdl instance | |
debug ($string) | |
adds debug data to the class level debug string | |
get ($wsdl) | |
gets a wsdl instance from the cache | |
obtainMutex ($filename, $mode) | |
obtains the local mutex | |
put ($wsdl_instance) | |
adds a wsdl instance to the cache | |
releaseMutex ($filename) | |
releases the local mutex | |
remove ($wsdl) | |
removes a wsdl instance from the cache |
Data Fields | |
$fplock | |
$cache_lifetime | |
$cache_dir | |
$debug_str = '' |
caches instances of the wsdl class
public
Definition at line 18 of file class.wsdlcache.php.
nusoap_wsdlcache::createFilename | ( | $wsdl | ) |
creates the filename used to cache a wsdl instance
string | $wsdl | The URL of the wsdl instance |
Reimplemented in wsdlcache.
Definition at line 60 of file class.wsdlcache.php.
References $wsdl.
Referenced by get(), put(), and remove().
nusoap_wsdlcache::debug | ( | $string | ) |
adds debug data to the class level debug string
string | $string | debug data private |
Reimplemented in wsdlcache.
Definition at line 70 of file class.wsdlcache.php.
Referenced by get(), obtainMutex(), put(), releaseMutex(), and remove().
nusoap_wsdlcache::get | ( | $wsdl | ) |
gets a wsdl instance from the cache
string | $wsdl | The URL of the wsdl instance |
Reimplemented in wsdlcache.
Definition at line 81 of file class.wsdlcache.php.
References $filename, $wsdl, createFilename(), debug(), obtainMutex(), and releaseMutex().
nusoap_wsdlcache::nusoap_wsdlcache | ( | $cache_dir = '.' , |
|
$cache_lifetime = 0 |
|||
) |
constructor
string | $cache_dir | directory for cache-files |
integer | $cache_lifetime | lifetime for caching-files in seconds or 0 for unlimited public |
Definition at line 47 of file class.wsdlcache.php.
References $cache_dir, and $cache_lifetime.
nusoap_wsdlcache::obtainMutex | ( | $filename, | |
$mode | |||
) |
obtains the local mutex
string | $filename | The Filename of the Cache to lock |
string | $mode | The open-mode ("r" or "w") or the file - affects lock-mode |
Reimplemented in wsdlcache.
Definition at line 124 of file class.wsdlcache.php.
References $filename, and debug().
Referenced by get(), put(), and remove().
nusoap_wsdlcache::put | ( | $wsdl_instance | ) |
adds a wsdl instance to the cache
object | wsdl $wsdl_instance The wsdl instance to add |
Reimplemented in wsdlcache.
Definition at line 144 of file class.wsdlcache.php.
References $filename, createFilename(), debug(), obtainMutex(), and releaseMutex().
nusoap_wsdlcache::releaseMutex | ( | $filename | ) |
releases the local mutex
string | $filename | The Filename of the Cache to lock |
Reimplemented in wsdlcache.
Definition at line 172 of file class.wsdlcache.php.
References $filename, $ret, and debug().
Referenced by get(), put(), and remove().
nusoap_wsdlcache::remove | ( | $wsdl | ) |
removes a wsdl instance from the cache
string | $wsdl | The URL of the wsdl instance |
Reimplemented in wsdlcache.
Definition at line 189 of file class.wsdlcache.php.
References $filename, $ret, $wsdl, createFilename(), debug(), obtainMutex(), and releaseMutex().
nusoap_wsdlcache::$cache_dir |
Definition at line 33 of file class.wsdlcache.php.
Referenced by nusoap_wsdlcache().
nusoap_wsdlcache::$cache_lifetime |
Definition at line 28 of file class.wsdlcache.php.
Referenced by nusoap_wsdlcache().
nusoap_wsdlcache::$debug_str = '' |
Definition at line 38 of file class.wsdlcache.php.
nusoap_wsdlcache::$fplock |
Definition at line 23 of file class.wsdlcache.php.