ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
handleCall () | |
handle XML_RPC calls | |
getResponse () | |
get the XML response of the XMLRPC server | |
clean () | |
Clean all the cache. |
Static Public Member Functions | |
static | create ($callTarget, $options=array()) |
"Emulated Factory" method to get the same API than XML_RPC2_Server class |
Protected Member Functions | |
__construct ($callTarget, $options=array()) | |
Constructor. | |
getContentLength ($content) | |
Gets the content legth of a serialized XML-RPC message in bytes. |
Private Member Functions | |
_setCacheOptions ($array) | |
Set options for the caching process. | |
_reflectionWork ($methodName) | |
Work on reflection API to search for .caching tags into PHPDOC comments. | |
_parseMethodName ($request) | |
Parse the method name from the raw XMLRPC client request. | |
_workWithoutCache () | |
Do the real stuff if no cache available. | |
_makeCacheId ($raw_request) | |
make a cache id depending on the raw xmlrpc client request but depending on "environnement" setting too |
Private Attributes | |
$_cacheByDefault = true | |
$_cacheObject = null | |
$_serverObject = null | |
$_defaultCacheGroup = 'xml_rpc2_server' | |
$_callHandler = null | |
$_callTarget = '' | |
$_prefix = '' | |
$_options = array() | |
$_cacheDebug = false | |
$_encoding = 'iso-8859-1' |
Definition at line 56 of file CachedServer.php.
|
protected |
Constructor.
object | $callHandler | the call handler will receive a method call for each remote call received. |
Definition at line 170 of file CachedServer.php.
References _setCacheOptions().
|
private |
make a cache id depending on the raw xmlrpc client request but depending on "environnement" setting too
string | $raw_request |
Definition at line 376 of file CachedServer.php.
Referenced by getResponse().
|
private |
Parse the method name from the raw XMLRPC client request.
NB : the prefix is removed from the method name
string | $request | raw XMLRPC client request |
Definition at line 342 of file CachedServer.php.
References $res, and $results.
Referenced by getResponse().
|
private |
Work on reflection API to search for .caching tags into PHPDOC comments.
string | $methodName | method name |
Definition at line 298 of file CachedServer.php.
References $_cacheByDefault, $res, and $results.
Referenced by getResponse().
|
private |
Set options for the caching process.
See Cache_Lite constructor for options Specific options are 'cachedMethods', 'notCachedMethods', 'cacheByDefault', 'defaultCacheGroup' See corresponding properties for more informations
array | $array |
Definition at line 144 of file CachedServer.php.
Referenced by __construct().
|
private |
Do the real stuff if no cache available.
Definition at line 360 of file CachedServer.php.
References create().
Referenced by getResponse().
XML_RPC2_CachedServer::clean | ( | ) |
Clean all the cache.
Definition at line 387 of file CachedServer.php.
|
static |
"Emulated Factory" method to get the same API than XML_RPC2_Server class
Here, simply returns a new instance of XML_RPC2_CachedServer class
mixed | $callTarget | either a class name or an object instance. |
array | $options | associative array of options |
Definition at line 203 of file CachedServer.php.
Referenced by _workWithoutCache().
|
protected |
Gets the content legth of a serialized XML-RPC message in bytes.
string | $content | the serialized XML-RPC message. |
Definition at line 402 of file CachedServer.php.
Referenced by handleCall().
XML_RPC2_CachedServer::getResponse | ( | ) |
get the XML response of the XMLRPC server
Definition at line 232 of file CachedServer.php.
References $_cacheByDefault, $data, $GLOBALS, _makeCacheId(), _parseMethodName(), _reflectionWork(), and _workWithoutCache().
Referenced by handleCall().
XML_RPC2_CachedServer::handleCall | ( | ) |
handle XML_RPC calls
Definition at line 215 of file CachedServer.php.
References getContentLength(), and getResponse().
|
private |
Definition at line 65 of file CachedServer.php.
Referenced by _reflectionWork(), and getResponse().
|
private |
Definition at line 123 of file CachedServer.php.
|
private |
Definition at line 72 of file CachedServer.php.
|
private |
Definition at line 95 of file CachedServer.php.
|
private |
Definition at line 102 of file CachedServer.php.
|
private |
Definition at line 86 of file CachedServer.php.
|
private |
Definition at line 130 of file CachedServer.php.
|
private |
Definition at line 116 of file CachedServer.php.
|
private |
Definition at line 109 of file CachedServer.php.
|
private |
Definition at line 79 of file CachedServer.php.