Mixer
in
混合器 Mixer
Table of Contents
mix() | [mix 混合数据与模板] | string |
---|---|---|
mixField() | [mixField 混合单个字段] | bool|mixed|string |
mixLoops() | void | |
getLoops() | mixed | |
mixConditions() | 混合判断条件 mixConditions | void |
getConditions() | mixed | |
mixFields() | void | |
getFields() | mixed | |
getSubData() | mixed | |
validValue() | bool | |
compareValue() | 对比数据 compareValue | bool |
structDepth() | mixed | |
buildPreg() | mixed | |
negate() | mixed | |
debug() | mixed |
Methods
mix()
[mix 混合数据与模板]
public
static mix(
[ $data :
array|null
= null ]
[, $module :
string|null
= null ]
)
: string
Parameters
- $data : array|null = null
[数据]
- $module : string|null = null
[模板]
Tags
Return values
stringmixField()
[mixField 混合单个字段]
public
static mixField(
$data :
, $struct :
)
: bool|mixed|string
Parameters
Tags
Return values
bool|mixed|string —[type] [description]
mixLoops()
public
static mixLoops(
&$data :
mixed
, &$module :
mixed
)
: void
Parameters
- $data : mixed
- $module : mixed
getLoops()
public
static getLoops(
$module :
mixed
)
: mixed
Parameters
- $module : mixed
Return values
mixedmixConditions()
混合判断条件 mixConditions
public
static mixConditions(
&$data :
array
, &$module :
string
[, $ifOrNotMode :
bool
= true ]
)
: void
Parameters
- $data : array
- $module : string
- $ifOrNotMode : bool = true
肯定/否定判断
Return values
void —$module 修改模板
getConditions()
public
static getConditions(
$module :
string
[, $ifOrNotMode :
bool
= true ]
)
: mixed
Parameters
- $module : string
- $ifOrNotMode : bool = true
Return values
mixedmixFields()
public
static mixFields(
&$data :
mixed
, &$module :
mixed
)
: void
Parameters
- $data : mixed
- $module : mixed
getFields()
public
static getFields(
$module :
mixed
)
: mixed
Parameters
- $module : mixed
Return values
mixedgetSubData()
public
static getSubData(
$data :
mixed
, $subKeys :
mixed
)
: mixed
Parameters
- $data : mixed
- $subKeys : mixed
Return values
mixedvalidValue()
public
static validValue(
$value :
mixed
, $key :
mixed
)
: bool
Parameters
- $value : mixed
- $key : mixed
Return values
boolcompareValue()
对比数据 compareValue
public
static compareValue(
$data :
, $key :
string
, $symbol :
string
, $target :
mixed
)
: bool
Parameters
Return values
boolstructDepth()
public
static structDepth(
$input :
mixed
)
: mixed
Parameters
- $input : mixed
Return values
mixedbuildPreg()
public
static buildPreg(
$pregParams :
mixed
)
: mixed
Parameters
- $pregParams : mixed
Return values
mixednegate()
public
static negate(
$judge :
bool
[, $mode :
bool
= true ]
)
: mixed
Parameters
- $judge : bool
- $mode : bool = true
Return values
mixeddebug()
public
static debug(
$any :
mixed
[, $withTypeMode :
bool
= false ]
)
: mixed
Parameters
- $any : mixed
- $withTypeMode : bool = false