Changeset 25394 for trunk/include


Ignore:
Timestamp:
Nov 8, 2013, 1:16:14 PM (10 years ago)
Author:
mistic100
Message:

Improve display on ws.htm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_core.inc.php

    r25115 r25394  
    390390    return isset($signature) ? $signature : array();
    391391  }
     392 
     393  /**
     394   * @since 2.6
     395   */
     396  function getMethodOptions($methodName)
     397  {
     398    $options = @$this->_methods[$methodName]['options'];
     399    return isset($options) ? $options : array();
     400  }
    392401
    393402  static function isPost()
     
    629638      'description' => $service->getMethodDescription($methodName),
    630639      'params' => array(),
     640      'options' => $service->getMethodOptions($methodName),
    631641    );
    632642   
     
    644654        $param_data['defaultValue'] = $options['default'];
    645655      }
     656      if (isset($options['maxValue']))
     657      {
     658        $param_data['maxValue'] = $options['maxValue'];
     659      }
    646660      if (isset($options['info']))
    647661      {
Note: See TracChangeset for help on using the changeset viewer.