aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_core.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-11-08 12:16:14 +0000
committermistic100 <mistic@piwigo.org>2013-11-08 12:16:14 +0000
commit07b8dd5770c1bdcaac799df76c324a2baf2e2c66 (patch)
tree5dd28dc64db6a377b33fb7be49d9130af46a4123 /include/ws_core.inc.php
parentaa85238878bbdf45fd3dd9fe620dab6efeedb015 (diff)
Improve display on ws.htm
git-svn-id: http://piwigo.org/svn/trunk@25394 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_core.inc.php')
-rw-r--r--include/ws_core.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php
index 704e383ea..6c01d9769 100644
--- a/include/ws_core.inc.php
+++ b/include/ws_core.inc.php
@@ -389,6 +389,15 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
$signature = @$this->_methods[$methodName]['signature'];
return isset($signature) ? $signature : array();
}
+
+ /**
+ * @since 2.6
+ */
+ function getMethodOptions($methodName)
+ {
+ $options = @$this->_methods[$methodName]['options'];
+ return isset($options) ? $options : array();
+ }
static function isPost()
{
@@ -628,6 +637,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
'name' => $methodName,
'description' => $service->getMethodDescription($methodName),
'params' => array(),
+ 'options' => $service->getMethodOptions($methodName),
);
foreach ($service->getMethodSignature($methodName) as $name => $options)
@@ -643,6 +653,10 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
{
$param_data['defaultValue'] = $options['default'];
}
+ if (isset($options['maxValue']))
+ {
+ $param_data['maxValue'] = $options['maxValue'];
+ }
if (isset($options['info']))
{
$param_data['info'] = $options['info'];