ILIAS
Release_3_10_x_branch Revision 61812
|
caches instances of the wsdl class More...
Public Member Functions | |
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 13 of file class.wsdlcache.php.
wsdlcache::createFilename | ( | $wsdl | ) |
creates the filename used to cache a wsdl instance
string | $wsdl | The URL of the wsdl instance |
Definition at line 55 of file class.wsdlcache.php.
Referenced by get(), put(), and remove().
wsdlcache::debug | ( | $string | ) |
adds debug data to the class level debug string
string | $string | debug data private |
Definition at line 65 of file class.wsdlcache.php.
Referenced by get(), obtainMutex(), put(), releaseMutex(), and remove().
wsdlcache::get | ( | $wsdl | ) |
gets a wsdl instance from the cache
string | $wsdl | The URL of the wsdl instance |
Definition at line 76 of file class.wsdlcache.php.
References $filename, createFilename(), debug(), obtainMutex(), and releaseMutex().
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 |
Definition at line 114 of file class.wsdlcache.php.
References $filename, and debug().
Referenced by get(), put(), and remove().
wsdlcache::put | ( | $wsdl_instance | ) |
adds a wsdl instance to the cache
object | wsdl $wsdl_instance The wsdl instance to add |
Definition at line 134 of file class.wsdlcache.php.
References $filename, createFilename(), debug(), obtainMutex(), and releaseMutex().
wsdlcache::releaseMutex | ( | $filename | ) |
releases the local mutex
string | $filename | The Filename of the Cache to lock |
Definition at line 157 of file class.wsdlcache.php.
References $filename, $ret, and debug().
Referenced by get(), put(), and remove().
wsdlcache::remove | ( | $wsdl | ) |
removes a wsdl instance from the cache
string | $wsdl | The URL of the wsdl instance |
Definition at line 174 of file class.wsdlcache.php.
References $filename, $ret, createFilename(), debug(), obtainMutex(), and releaseMutex().
wsdlcache::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 42 of file class.wsdlcache.php.
References $cache_dir, and $cache_lifetime.
wsdlcache::$cache_dir |
Definition at line 28 of file class.wsdlcache.php.
Referenced by wsdlcache().
wsdlcache::$cache_lifetime |
Definition at line 23 of file class.wsdlcache.php.
Referenced by wsdlcache().
wsdlcache::$debug_str = '' |
Definition at line 33 of file class.wsdlcache.php.
wsdlcache::$fplock |
Definition at line 18 of file class.wsdlcache.php.