mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Improve display on ws.htm
git-svn-id: http://piwigo.org/svn/trunk@25394 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user