library/Garp/Auth.php
public function getRoleChildren($role) {
        $children = array();
        if (Zend_Registry::isRegistered('Zend_Acl')) {
            $acl = Zend_Registry::get('Zend_Acl');
            $roles = $acl->getRoles();

            foreach ($roles as $potentialChild) {
                if ($acl->inheritsRole($potentialChild, $role)) {
                    $children[] = $potentialChild;
                }
            }
        }
        return $children;
    }
public function getRoleChildren($role) {
        $children = array();
        if (Zend_Registry::isRegistered('Zend_Acl')) {
            $acl = Zend_Registry::get('Zend_Acl');
            $roles = $acl->getRoles();

            foreach ($roles as $potentialChild) {
                if ($acl->inheritsRole($potentialChild, $role)) {
                    $children[] = $potentialChild;
                }
            }
        }
        return $children;
    }
public function getRoleChildren ( $ role ) { $ children = array ( ) ; if ( Zend_Registry :: isRegistered ( 'Zend_Acl' ) ) { $ acl = Zend_Registry :: get ( 'Zend_Acl' ) ; $ roles = $ acl -> getRoles ( ) ; foreach ( $ roles as $ potentialChild ) { if ( $ acl -> inheritsRole ( $ potentialChild , $ role ) ) { $ children [ ] = $ potentialChild ; } } } return $ children ; }
Return the children of a given role
@param String $role
@return Array
Return the children of a given role