\common\helpersHelpers

Summary

Methods
Properties
Constants
getTree()
getTreeSelect()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getTree()

getTree(  $list, string  $parrentName = 'parent_id', string  $childName = 'children') : array

Parameters

$list

列表数据 id => data

string $parrentName
string $childName

Returns

array

getTreeSelect()

getTreeSelect(  $data,   $splitStr = '') 

Parameters

$data
$splitStr