\app\admin\modelCategory

Summary

Methods
Properties
Constants
getTree()
catelist()
getOne()
add()
edit()
del()
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(string  $type = 'tree', string  $order = '',   $name = 'title',   $child = 'id',   $parent = 'pid') : array

获取全部数据

Parameters

string $type

tree获取树形结构 level获取层级结构

string $order

排序方式

$name
$child
$parent

Returns

array —

结构数据

catelist()

catelist() 

getOne()

getOne(  $id) 

Parameters

$id

add()

add(  $data) 

Parameters

$data

edit()

edit(  $id,   $data) 

Parameters

$id
$data

del()

del(  $id) 

Parameters

$id