src/acdhOeaw/fedora/acl/WebAcl.php
public function getRules(bool $inherited = true): array {
        $ret = array();
        foreach ($this->resRules as $i) {
            $ret[] = $i->getData();
        }
        if ($inherited) {
            foreach ($this->extRules as $i) {
                $ret[] = $i->getData();
            }
        }
        return $ret;
    }
public function getRules(bool $inherited = true): array {
        $ret = array();
        foreach ($this->resRules as $i) {
            $ret[] = $i->getData();
        }
        if ($inherited) {
            foreach ($this->extRules as $i) {
                $ret[] = $i->getData();
            }
        }
        return $ret;
    }
public function getRules ( bool $ inherited = true ) : array { $ ret = array ( ) ; foreach ( $ this -> resRules as $ i ) { $ ret [ ] = $ i -> getData ( ) ; } if ( $ inherited ) { foreach ( $ this -> extRules as $ i ) { $ ret [ ] = $ i -> getData ( ) ; } } return $ ret ; }
Fetches an array of `WebAclRule` objects containing access rules for
a corresponding Fedora resource.
@param bool $inherited should rules inherited from parent (in Fedora
terms) resources be taken into account?
@return array
Fetches an array of WebAclRule objects containing access rules for a corresponding Fedora resource .