applicationcommon.php

Functions

listToTree()

listToTree(  $list, string  $pk = 'id', string  $pid = 'fid', string  $child = '_child', string  $root = '0') : array

把返回的数据集转换成Tree

Parameters

$list
string $pk
string $pid
string $child
string $root

Returns

array

formatTree()

formatTree(  $list,   $lv,   $title = 'name') 

Parameters

$list
$lv
$title