\app\serviceConf

系统配置服务器实现者 Class Auth

Summary

Methods
Properties
Constants
getError()
setError()
get()
set()
del()
groupSet()
groupGet()
No public properties found
No constants found
hasRedis()
getGroupKey()
$_error
$redis
$db
N/A
No private methods found
No private properties found
N/A

Properties

$_error

$_error : 

Type

$redis

$redis : 

Type

$db

$db : 

Type

Methods

getError()

getError() 

setError()

setError(  $error) 

Parameters

$error

get()

get(  $wholeKey,   $defaultValue = '') : boolean|mixed|string

通过一个完整的key,获取配置信息

Parameters

$wholeKey
$defaultValue

Returns

boolean|mixed|string

set()

set(  $wholeKey,   $value) : boolean

通过一个完整的key,设置配置信息

Parameters

$wholeKey
$value

Returns

boolean

del()

del(  $group,   $key) 

Parameters

$group
$key

groupSet()

groupSet(  $array) : boolean

通过数组,设置配置信息

Parameters

$array

Returns

boolean

groupGet()

groupGet(  $group,   $onlyMysql = false) : array

通过配置分组名称,获取整个分组的信息

Parameters

$group
$onlyMysql

boolean 是否仅从数据库取配置

Throws

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

Returns

array

hasRedis()

hasRedis() 

getGroupKey()

getGroupKey(  $wholeKey) : array|boolean

通过完整的key,获取到分组名称和key值

Parameters

$wholeKey

Returns

array|boolean