mixed getConfig(
[string
$configName = ''], [string
$subConfigName = ''], [string
$default = ''], [array
$config = array()]
)
|
|
根据配置名取得相应的配置
当configName为空时则返回整个配置.当配置值不存在时返回默认值.默认值默认为空
Parameters:
string |
$configName: |
键名 |
string |
$subConfigName: |
二级键名 |
string |
$default: |
默认值 |
array |
$config: |
外部配置 |
API Tags:
返回当前应用的WindHttpRequest对象
API Tags:
Redefined in descendants as:
返回当前应用的WindHttpResponse对象
API Tags:
Redefined in descendants as:
返回当前应用的WindFactory对象
API Tags:
void setConfig(
string|array
$config
)
|
|
设置类配置
设置类配置信息,如果配置已经存在,则将以存在配置和输入配置进行合并. 重复配置后者将覆盖前者. 支持配置路径解析,当输入值为配置路径时则会调用配置解析器进行解析并自动缓存当前配置值.(缓存是由wind_config中的isCache配置值决定是否开启)
Parameters:
API Tags:
Redefined in descendants as:
void setDelayAttributes(
array
$delayAttributes
)
|
|
设置延迟加载类属性相关组件配置信息
Parameters:
API Tags:
array writeTableCloneProperty(
)
|
|
类对象clone白名单
当类对象被clone时,会访问该方法,该方法返回该类中需要被同时clone的类属性名称,默认返回空数组
API Tags:
mixed __call(
string
$methodName, array
$args
)
|
|
重载了魔术方法__call
当类的方法访问不到时调用该方法,在这里的实现是配置类属性对象的延迟加载策略
//延迟访问某个属性,当使用这种方式调用时该方法被调用,并访问该类中的$_delayAttributes属性,并创建该属性对象并返回
$this->_getMethodName();
Parameters:
string |
$methodName: |
|
array |
$args: |
|
API Tags:
重载魔术方法__clone
当clone类对象时该方法被调用,通过配置白名单选择是否clone类中的属性对象.
API Tags:
Deprecated: | |
Access: | public |
mixed __get(
string
$propertyName
)
|
|
重载了魔术方法__get
当属性访问不到时该方法被调用,该方法会尝试去访问对应属性的getter并返回对应的值,如果不存在则什么也不做
Parameters:
API Tags:
void __set(
string
$propertyName, mixed
$value
)
|
|
重载了魔术方法__set
当属性访问不到时该方法被调用,该方法会尝试去访问对应属性的setter设置器,如果不存在则什么也不做
Parameters:
string |
$propertyName: |
|
mixed |
$value: |
|
API Tags: