// used to validate nesting of xmlrpc elements
public $_xh = null;
- private static $instance = null;
+ protected static $instance = null;
private function __construct() {
$this->xmlrpcTypes = array(
* This class is singleton for performance reasons: this way the ASCII array needs to be done only once.
*/
public static function instance() {
- if(Phpxmlrpc::$instance === null) {
- Phpxmlrpc::$instance = new Phpxmlrpc();
+ if(self::$instance === null) {
+ self::$instance = new self();
}
- return Phpxmlrpc::$instance;
+ return self::$instance;
}
}