Documentation

nusoap_wsdlcache
in package

caches instances of the wsdl class

Tags
author

Scott Nichol snichol@users.sourceforge.net

author

Ingo Fischer ingo@apollon.de

access

public

Table of Contents

$cache_dir  : string
$cache_lifetime  : int
$debug_str  : string
$fplock  : resource
createFilename()  : string
creates the filename used to cache a wsdl instance
debug()  : mixed
adds debug data to the class level debug string
get()  : object
gets a wsdl instance from the cache
nusoap_wsdlcache()  : mixed
constructor
obtainMutex()  : bool
obtains the local mutex
put()  : bool
adds a wsdl instance to the cache
releaseMutex()  : bool
releases the local mutex
remove()  : bool
removes a wsdl instance from the cache

Properties

Methods

createFilename()

creates the filename used to cache a wsdl instance

public createFilename(string $wsdl) : string
Parameters
$wsdl : string

The URL of the wsdl instance

Tags
access

private

Return values
string

The filename used to cache the instance

debug()

adds debug data to the class level debug string

public debug(string $string) : mixed
Parameters
$string : string

debug data

Tags
access

private

Return values
mixed

get()

gets a wsdl instance from the cache

public get(string $wsdl) : object
Parameters
$wsdl : string

The URL of the wsdl instance

Tags
access

public

Return values
object

wsdl The cached wsdl instance, null if the instance is not in the cache

nusoap_wsdlcache()

constructor

public nusoap_wsdlcache([string $cache_dir = '.' ], int $cache_lifetime) : mixed
Parameters
$cache_dir : string = '.'

directory for cache-files

$cache_lifetime : int

lifetime for caching-files in seconds or 0 for unlimited

Tags
access

public

Return values
mixed

obtainMutex()

obtains the local mutex

public obtainMutex(string $filename, string $mode) : bool
Parameters
$filename : string

The Filename of the Cache to lock

$mode : string

The open-mode ("r" or "w") or the file - affects lock-mode

Tags
access

private

Return values
bool

Lock successfully obtained ?!

put()

adds a wsdl instance to the cache

public put(mixed $wsdl_instance) : bool
Parameters
$wsdl_instance : mixed
Tags
access

public

Return values
bool

WSDL successfully cached

releaseMutex()

releases the local mutex

public releaseMutex(string $filename) : bool
Parameters
$filename : string

The Filename of the Cache to lock

Tags
access

private

Return values
bool

Lock successfully released

remove()

removes a wsdl instance from the cache

public remove(string $wsdl) : bool
Parameters
$wsdl : string

The URL of the wsdl instance

Tags
access

public

Return values
bool

Whether there was an instance to remove

Search results