mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Merge branch 'master' of https://github.com/top-think/framework
This commit is contained in:
@@ -216,6 +216,17 @@ class Validate
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否存在某个验证场景
|
||||
* @access public
|
||||
* @param string $name 场景名
|
||||
* @return bool
|
||||
*/
|
||||
public function hasScene($name)
|
||||
{
|
||||
return isset($this->scene[$name]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置批量验证
|
||||
* @access public
|
||||
|
||||
Reference in New Issue
Block a user