X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FServer.php;h=49a548365d02c507c508c73e09fd843c509ecb47;hb=1dc0e62829d3238e1181e58774a27cc44e596ef1;hp=ab171685927b6e9171076d9d6ee35eed58ced37c;hpb=7df27d0ac7a41e6ca108ff85d6bfd379251dfc78;p=plcapi.git diff --git a/src/Server.php b/src/Server.php index ab17168..49a5483 100644 --- a/src/Server.php +++ b/src/Server.php @@ -825,12 +825,22 @@ class Server return $outAr; } + /** + * @param Server $server + * @param Request $req + * @return Response + */ public static function _xmlrpcs_getCapabilities($server, $req = null) { $encoder = new Encoder(); return new Response($encoder->encode($server->getCapabilities())); } + /** + * @param Server $server + * @param Request $req + * @return Response + */ public static function _xmlrpcs_listMethods($server, $req = null) // if called in plain php values mode, second param is missing { $outAr = array(); @@ -846,6 +856,11 @@ class Server return new Response(new Value($outAr, 'array')); } + /** + * @param Server $server + * @param Request $req + * @return Response + */ public static function _xmlrpcs_methodSignature($server, $req) { // let accept as parameter both an xmlrpc value or string @@ -883,6 +898,11 @@ class Server return $r; } + /** + * @param Server $server + * @param Request $req + * @return Response + */ public static function _xmlrpcs_methodHelp($server, $req) { // let accept as parameter both an xmlrpc value or string @@ -926,6 +946,11 @@ class Server return new Value($struct, 'struct'); } + /** + * @param Server $server + * @param Value $call + * @return Value + */ public static function _xmlrpcs_multicall_do_call($server, $call) { if ($call->kindOf() != 'struct') { @@ -969,6 +994,11 @@ class Server return new Value(array($result->value()), 'array'); } + /** + * @param Server $server + * @param Value $call + * @return Value + */ public static function _xmlrpcs_multicall_do_call_phpvals($server, $call) { if (!is_array($call)) { @@ -1008,6 +1038,11 @@ class Server return new Value(array($result->value()), 'array'); } + /** + * @param Server $server + * @param Request $req + * @return Response + */ public static function _xmlrpcs_multicall($server, $req) { $result = array();