mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
改进Query类的getOptions方法 当name参数不存在的时候返回null
This commit is contained in:
@@ -1487,7 +1487,11 @@ class Query
|
|||||||
*/
|
*/
|
||||||
public function getOptions($name = '')
|
public function getOptions($name = '')
|
||||||
{
|
{
|
||||||
return isset($this->options[$name]) ? $this->options[$name] : $this->options;
|
if ('' === $name) {
|
||||||
|
return $this->options;
|
||||||
|
} else {
|
||||||
|
return isset($this->options[$name]) ? $this->options[$name] : null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user