function _XML_RPC_Server($config = array()) { parent::_XML_RPC(); $this->set_system_methods(); if (isset($config['functions']) && is_array($config['functions'])) { $this->methods = $config['functions']; } log_message('debug', "XML-RPC Server Class Initialized"); }
function XML_RPC_Values($val = -1, $type = '') { parent::_XML_RPC(); if ($val != -1 || $type != '') { $type = $type == '' ? 'string' : $type; if ($this->xmlrpcTypes[$type] == 1) { $this->addScalar($val, $type); } elseif ($this->xmlrpcTypes[$type] == 2) { $this->addArray($val); } elseif ($this->xmlrpcTypes[$type] == 3) { $this->addStruct($val); } } }