\PhalApi\RequestParser
Parser 变量格式化类
针对设定的规则进行对品购模块中的变量进行格式化操作
- 1、根据字段与预定义变量对应关系,获取变量值
- 2、对变量进行类型转换
- 3、进行有效性判断过滤
- 4、按业务需求进行格式化
格式规则:
array('name' => '', 'type' => 'string', 'default' => '', 'min' => '', 'max' => '', 'regex' => '')
array('name' => '', 'type' => 'int', 'default' => '', 'min' => '', 'max' => '',)
array('name' => '', 'type' => 'float', 'default' => '', 'min' => '', 'max' => '',)
array('name' => '', 'type' => 'boolean', 'default' => '',)
array('name' => '', 'type' => 'date', 'default' => '',)
array('name' => '', 'type' => 'array', 'default' => '', 'format' => 'json/explode', 'separator' => '')
array('name' => '', 'type' => 'enum', 'default' => '', 'range' => array(...))
array('name' => '', 'type' => 'file', 'default' => array(...), 'min' => '', 'max' => '', 'range' => array(...))
Summary
No public properties found
No protected properties found
No private properties found