配置信息
注册配置文件的路径,在需要的时候再加载
package |
Tango |
---|---|
author |
Zheng Kai zhengkai@gmail.com |
_setFile(string $sName, string $sPath, boolean $bDefault = FALSE) : boolean
static | |
---|---|
access |
protected |
throws |
string
配置的命名空间
string
配置文件的路径
boolean
是否是缺省配置
boolean
get(string $sName) : array
static | |
---|---|
access |
public |
string
配置的命名空间
array
getFile(string $sName) : array
static | |
---|---|
access |
public |
string
配置的命名空间
array
setFile(string $sName, string $sPath) : void
static | |
---|---|
access |
public |
string
配置的命名空间
string
配置文件的路径
setFileDefault(string $sName, string $sPath) : void
这个方法通常是在定义类的文件里出现,确保所有初始值已经有了,而避免找不到 key 出现 php notice 可以参考 Drive\DB.php 文件开头的用法
see |
\Tango\Drive\DB
class |
---|---|
static | |
access |
public |
string
配置的命名空间
string
配置文件的路径
_lStore :
_lFile :
_lFileDefault :