\serviceNodeService

系统权限节点读取器 Class NodeService

Summary

Methods
Properties
Constants
applyAuthNode()
getAuthNode()
checkAuthNode()
get()
getNodeTree()
parseNodeStr()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
scanDirFile()
No private properties found
N/A

Methods

applyAuthNode()

applyAuthNode() : boolean

应用用户权限节点

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

boolean

getAuthNode()

getAuthNode() : array

获取授权节点

Returns

array

checkAuthNode()

checkAuthNode(string  $node) : boolean

检查用户节点权限

Parameters

string $node

节点

Returns

boolean

get()

get(array  $nodes = array()) : array

获取系统代码节点

Parameters

array $nodes

Returns

array

getNodeTree()

getNodeTree(string  $dirPath, array  $nodes = array()) : array

获取节点列表

Parameters

string $dirPath

路径

array $nodes

额外数据

Returns

array

parseNodeStr()

parseNodeStr(string  $node) : string

驼峰转下划线规则

Parameters

string $node

Returns

string

scanDirFile()

scanDirFile(string  $dirPath, array  $data = array(), string  $ext = 'php') : array

获取所有PHP文件

Parameters

string $dirPath

目录

array $data

额外数据

string $ext

有文件后缀

Returns

array