Server

# Class: SoapXMLCache Source Location: /server/SoapXMLCache.php
### Class Overview
Class to manage the caching of the SOAP XML #### Author(s): Yves Bolognini <yves.bolognini@camptocamp.com> | ### Variables $cartoserver $log $mapId $soapXMLFile | ### Methods __construct cacheSoapXML getDigest getSoapXMLFile printSoapXML printSoapXMLFromServer readSoapXML skipCache
### Class Details [line 31] Class to manage the caching of the SOAP XML Cache cleaning is done by cleaning script. #### Tags:
author: | Yves Bolognini <yves.bolognini@camptocamp.com>
[ Top ] ### Class Variables #### $cartoserver = [line 52] #### Tags:
access: | private
Type: | Cartoserver
[ Top ] #### $log = [line 36] #### Tags:
access: | private
Type: | Logger
[ Top ] #### $mapId = [line 47] #### Tags:
access: | private
Type: | string
[ Top ] #### $soapXMLFile = [line 42] Cache file name #### Tags:
access: | private
Type: | string
[ Top ] ### Class Methods ### constructor __construct [line 57]
`SoapXMLCache __construct( )`
Constructor #### Tags:
access: | public
[ Top ] ### method cacheSoapXML [line 115]
`void cacheSoapXML( string $soapRequest)`
Retrieves data and stores in cache #### Tags:
access: | private
#### Parameters:
string | $soapRequest |
[ Top ] ### method getDigest [line 71]
`string getDigest( string $soapRequest)`
Returns MD5 code of XML soap request #### Tags:
access: | private
#### Parameters:
string | $soapRequest |
[ Top ] ### method getSoapXMLFile [line 99]
`string getSoapXMLFile( string $soapRequest)`
Computes cache file name #### Tags:
access: | private
#### Parameters:
string | $soapRequest |
[ Top ] ### method printSoapXML [line 159]
`void printSoapXML( string $soapRequest)`
Prints SOAP XML, cache if necessary Possible cases: Cache not used --> reads from server Still not cached, first call --> reads from server Still not cached, second call --> reads from server, writes cache Cached --> reads from cache #### Tags:
access: | public
#### Parameters:
string | $soapRequest |
[ Top ] ### method printSoapXMLFromServer [line 81]
`string printSoapXMLFromServer( string $soapRequest)`
Retrieves and prints XML data from server #### Tags:
access: | private
#### Parameters:
string | $soapRequest |
[ Top ] ### method readSoapXML [line 130]
`string readSoapXML( string $soapRequest)`
Reads and prints cached content #### Tags:
access: | private
#### Parameters:
string | $soapRequest |
[ Top ] ### method skipCache [line 144]
`boolean skipCache( string $soapRequest)`
Returns true if cache shouldn't be used #### Tags:
access: | private
#### Parameters:
string | $soapRequest |
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:31:08 +0200 by phpDocumentor 1.3.0RC3