git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve solution to allow custom mapping of class names when wrapping them
[plcapi.git]
/
demo
/
server
/
methodProviders
/
wrapper.php
diff --git
a/demo/server/methodProviders/wrapper.php
b/demo/server/methodProviders/wrapper.php
index
b90425a
..
749670f
100644
(file)
--- a/
demo/server/methodProviders/wrapper.php
+++ b/
demo/server/methodProviders/wrapper.php
@@
-138,6
+138,8
@@
$c = new xmlrpcServerMethodsContainer();
$moreSignatures = $wrapper->wrapPhpClass($c, array('prefix' => 'tests.', 'method_type' => 'all'));
$moreSignatures = $wrapper->wrapPhpClass($c, array('prefix' => 'tests.', 'method_type' => 'all'));
+$namespaceSignatures = $wrapper->wrapPhpClass($c, array('prefix' => 'namespacetest.', 'replace_class_name' => true, 'method_filter' => '/^findState$/', 'method_type' => 'static'));
+
$returnObj_sig = $wrapper->wrapPhpFunction(array($c, 'returnObject'), '', array('encode_php_objs' => true));
return array_merge(
$returnObj_sig = $wrapper->wrapPhpFunction(array($c, 'returnObject'), '', array('encode_php_objs' => true));
return array_merge(
@@
-154,5
+156,6
@@
return array_merge(
'tests.getStateName.11' => $findstate11_sig,
'tests.returnPhpObject' => $returnObj_sig,
),
'tests.getStateName.11' => $findstate11_sig,
'tests.returnPhpObject' => $returnObj_sig,
),
+ $namespaceSignatures,
$moreSignatures
);
$moreSignatures
);