public function removePolicy($sec, $ptype, array $rule)
    {
        foreach ($this->model[$sec][$ptype]->policy as $i => $r) {
            if (empty(array_diff($rule, $r))) {
                array_splice($this->model[$sec][$ptype]->policy, $i, 1);

                return true;
            }
        }

        return false;
    }
public function removePolicy($sec, $ptype, array $rule)
    {
        foreach ($this->model[$sec][$ptype]->policy as $i => $r) {
            if (empty(array_diff($rule, $r))) {
                array_splice($this->model[$sec][$ptype]->policy, $i, 1);

                return true;
            }
        }

        return false;
    }
public function removePolicy ( $ sec , $ ptype , array $ rule ) { foreach ( $ this -> model [ $ sec ] [ $ ptype ] -> policy as $ i => $ r ) { if ( empty ( array_diff ( $ rule , $ r ) ) ) { array_splice ( $ this -> model [ $ sec ] [ $ ptype ] -> policy , $ i , 1 ) ; return true ; } } return false ; }
removes a policy rule from the model.

@param string $sec
@param string $ptype
@param array  $rule

@return bool
removes a policy rule from the model .