\app\admin\modelAuthGroup

Summary

Methods
Properties
Constants
getTree()
setRulesAttr()
getStatusAttr()
getRulesAttr()
add()
edit()
getAll()
getOne()
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 —

结构数据

setRulesAttr()

setRulesAttr(  $value) 

Parameters

$value

getStatusAttr()

getStatusAttr(  $value) 

Parameters

$value

getRulesAttr()

getRulesAttr(  $value) 

Parameters

$value

add()

add(  $data) 

Parameters

$data

edit()

edit(  $data,   $id) 

Parameters

$data
$id

getAll()

getAll() 

getOne()

getOne(  $id) 

Parameters

$id