TRpcProtocol is the base class used to implement a protocol in a {@link TRpcService}. Prado already implements two protocols: {@link TXmlRpcProtocol} for Xml-Rpc request and {@link TJsonRpcProtocol} for JSON-Rpc requests.
Since: 3.2
Author: Robin J. Rogge (rrogge@bigpoint.net)
Example #1
0
 /**
  * Registers a new RPC method and handler details
  * @param string $methodName
  * @param array $handlerDetails containing the callback handler
  */
 public function addMethod($methodName, $methodDetails)
 {
     parent::addMethod($methodName, $methodDetails);
     xmlrpc_server_register_method($this->_xmlrpcServer, $methodName, array($this, 'callApiMethod'));
 }