Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Client/ServerProxy.php
Go to the documentation of this file.
00001 <?php
00035 class Zend_XmlRpc_Client_ServerProxy
00036 {
00040     private $_client = null;
00041 
00045     private $_namespace = '';
00046 
00047 
00051     private $_cache = array();
00052 
00053 
00060     public function __construct($client, $namespace = '')
00061     {
00062         $this->_namespace = $namespace;
00063         $this->_client    = $client;
00064     }
00065 
00066 
00073     public function __get($namespace)
00074     {
00075         $namespace = ltrim("$this->_namespace.$namespace", '.');
00076         if (!isset($this->_cache[$namespace])) {
00077             $this->_cache[$namespace] = new $this($this->_client, $namespace);
00078         }
00079         return $this->_cache[$namespace];
00080     }
00081 
00082 
00090     public function __call($method, $args)
00091     {
00092         $method = ltrim("$this->_namespace.$method", '.');
00093         return $this->_client->call($method, $args);
00094     }
00095 }
 All Data Structures Namespaces Files Functions Variables Enumerations