public function removeNamedGroupingPolicy($ptype, ...$params)
    {
        $ruleRemoved = false;
        if (1 == count($params) && is_array($params[0])) {
            $strSlice = $params[0];
            $ruleRemoved = $this->removePolicyInternal('g', $ptype, $strSlice);
        } else {
            $policy = [];
            foreach ($params as $param) {
                $policy[] = $param;
            }

            $ruleRemoved = $this->removePolicyInternal('g', $ptype, $policy);
        }

        if ($this->autoBuildRoleLinks) {
            $this->buildRoleLinks();
        }

        return $ruleRemoved;
    }
public function removeNamedGroupingPolicy($ptype, ...$params)
    {
        $ruleRemoved = false;
        if (1 == count($params) && is_array($params[0])) {
            $strSlice = $params[0];
            $ruleRemoved = $this->removePolicyInternal('g', $ptype, $strSlice);
        } else {
            $policy = [];
            foreach ($params as $param) {
                $policy[] = $param;
            }

            $ruleRemoved = $this->removePolicyInternal('g', $ptype, $policy);
        }

        if ($this->autoBuildRoleLinks) {
            $this->buildRoleLinks();
        }

        return $ruleRemoved;
    }
public function removeNamedGroupingPolicy ( $ ptype , ... $ params ) { $ ruleRemoved = false ; if ( 1 == count ( $ params ) && is_array ( $ params [ 0 ] ) ) { $ strSlice = $ params [ 0 ] ; $ ruleRemoved = $ this -> removePolicyInternal ( 'g' , $ ptype , $ strSlice ) ; } else { $ policy = [ ] ; foreach ( $ params as $ param ) { $ policy [ ] = $ param ; } $ ruleRemoved = $ this -> removePolicyInternal ( 'g' , $ ptype , $ policy ) ; } if ( $ this -> autoBuildRoleLinks ) { $ this -> buildRoleLinks ( ) ; } return $ ruleRemoved ; }
removes a role inheritance rule from the current named policy.

@param $ptype
@param mixed ...$params

@return bool
removes a role inheritance rule from the current named policy .