JSON

Zend Framework手册 中文版(4)

字号+ 作者:H5之家 来源:H5之家 2017-11-21 10:05 我要评论( )

addParam($type, array $options = array(),$order = null): Add a parameter to theservice. By default, only the parameter type isnecessary. However, you may also specify the order, aswell as options suc

addParam($type, array $options = array(), $order = null): Add a parameter to the service. By default, only the parameter type is necessary. However, you may also specify the order, as well as options such as:

  • name: the parameter name

  • optional: whether or not the parameter is optional

  • default: a default value for the parameter

  • description: text describing the parameter

  • addParams(array $params): Add several parameters at once; each param should be an assoc array containing minimally the key 'type' describing the parameter type, and optionally the key 'order'; any other keys will be passed as $options to addOption().

  • setParams(array $params): Set many parameters at once, overwriting any existing parameters.

  • getParams(): Retrieve all currently set parameters.

  • setReturn($type): Set the return value type of the service.

  • getReturn(): Get the return value type of the service.

  • toArray(): Cast the service to an array.

  • toJson(): Cast the service to a JSON representation.

  •  

    1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

    相关文章
    • Python的Json方法

      Python的Json方法

      2017-11-18 12:10

    • Springmvc下的jquery,ajax和json的等技术的运用

      Springmvc下的jquery,ajax和json的等技术的运用

      2017-10-07 16:00

    • JSON中文在线手册

      JSON中文在线手册

      2017-08-26 15:08

    • 学习Linux精神绝招

      学习Linux精神绝招

      2017-08-24 11:00

    网友点评