\app\admin\modelAuthRule

Summary

Methods
Properties
Constants
getTree()
getRules()
getColumn()
subtree()
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 —

结构数据

getRules()

getRules() 

getColumn()

getColumn(  $where) 

Parameters

$where

subtree()

subtree(  $arr = array(),   $id,   $lev = 1) 

Parameters

$arr
$id
$lev