\app\admin\modelAdmin

Summary

Methods
Properties
Constants
getTree()
profile()
add()
getOne()
edit()
del()
editPwd()
No public properties found
No constants found
setAdminArr()
setAuthGroupAccessArr()
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 —

结构数据

profile()

profile() 

add()

add(  $data) 

Parameters

$data

getOne()

getOne(  $id) 

Parameters

$id

edit()

edit(  $data,   $id) 

Parameters

$data
$id

del()

del(  $id) 

Parameters

$id

editPwd()

editPwd(  $pwd) 

Parameters

$pwd

setAdminArr()

setAdminArr(  $data) 

Parameters

$data

setAuthGroupAccessArr()

setAuthGroupAccessArr(  $uid,   $gid) 

Parameters

$uid
$gid