Docs For Class Zend_XmlRpc_Server_Cache

## Class Zend_XmlRpc_Server_Cache

Description

Zend_XmlRpc_Server_Cache: cache Zend_XmlRpc_Server dispatch tables

- license: Zend Framework License version 1.0
- copyright: Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/XmlRpc/Server/Cache.php (line 35)

Method Summary
static boolean delete (string $filename)
static bool get (string $filename, Zend_XmlRpc_Server $server)
static bool save (string $filename, Zend_XmlRpc_Server $server)
Methods
static method delete (line 131)

Remove a cache file

- access: public

static boolean delete (string $filename)

- string $filename

static method get (line 105)

Add dispatch table from a file

Unserializes a stored dispatch table from $filename. Returns false if it fails in any way, true on success.

Useful to prevent needing to build the dispatch list on each XMLRPC request. Sample usage:

1. if (!Zend_XmlRpc_Server_Cache::get($filename, $server)) {
2. require_once 'Some/Service/Class.php';
3. require_once 'Another/Service/Class.php';
5. // Attach Some_Service_Class with namespace 'some'
6. $server->attach('Some_Service_Class', 'some');
8. // Attach Another_Service_Class with namespace 'another'
9. $server->attach('Another_Service_Class', 'another');
11. Zend_XmlRpc_Server_Cache::save($filename, $server);
12. }
14. $response = $server->handle();
15. echo $response;

- access: public

static bool get (string $filename, Zend_XmlRpc_Server $server)

- string $filename
- Zend_XmlRpc_Server $server

static method save (line 50)

Cache a file containing the dispatch list.

Serializes the XMLRPC server callbacks array and stores the information in $filename.

Returns false on any error (typically, inability to write to file), true on success.

- access: public

static bool save (string $filename, Zend_XmlRpc_Server $server)

- string $filename
- Zend_XmlRpc_Server $server

Documentation generated on Sun, 29 Oct 2006 21:27:52 -0600 by phpDocumentor 1.3.0RC6