GC_Dependencies::set_group()
最后更新于:2021-11-27 14:39:05
GC_Dependencies::set_group( string$handle, bool$recursion, int|false$group)Set item group, unless already in a lower group.
参数
- $handle
-
(string) (Required) Name of the item. Should be unique.
- $recursion
-
(bool) (Required) Internal flag that calling function was called recursively.
- $group
-
(int|false) (Required) Group level: level (int), no groups (false).
响应
(bool) Not already in the group or a lower group.
源文件
文件: gc-includes/class.gc-dependencies.php
public function set_group( $handle, $recursion, $group ) {
$group = (int) $group;
if ( isset( $this->groups[ $handle ] ) && $this->groups[ $handle ] <= $group ) {
return false;
}
$this->groups[ $handle ] = $group;
return true;
}