original_string: protected function getInheritedPrivileges(array $parents)
      {
          if (! $parents) {
              return array();
          }
  
          $rolePrivileges = $this->acl->getRolePrivileges();
          $inherited      = array();
          foreach ($parents as $parent) {
              if (isset($rolePrivileges[$parent])) {
                  $inherited = $inherited + array_flip($rolePrivileges[$parent][\Zend_Acl::TYPE_ALLOW]);
                  $inherited = $inherited +
                          array_flip($rolePrivileges[$parent][\MUtil_Acl::INHERITED][\Zend_Acl::TYPE_ALLOW]);
              }
          }
          // Sneaks in:
          unset($inherited[""]);
  
          return $inherited;
      }
code: protected function getInheritedPrivileges(array $parents)
      {
          if (! $parents) {
              return array();
          }
  
          $rolePrivileges = $this->acl->getRolePrivileges();
          $inherited      = array();
          foreach ($parents as $parent) {
              if (isset($rolePrivileges[$parent])) {
                  $inherited = $inherited + array_flip($rolePrivileges[$parent][\Zend_Acl::TYPE_ALLOW]);
                  $inherited = $inherited +
                          array_flip($rolePrivileges[$parent][\MUtil_Acl::INHERITED][\Zend_Acl::TYPE_ALLOW]);
              }
          }
          // Sneaks in:
          unset($inherited[""]);
  
          return $inherited;
      }
code_tokens: protected function getInheritedPrivileges ( array $ parents ) { if ( ! $ parents ) { return array ( ) ; } $ rolePrivileges = $ this -> acl -> getRolePrivileges ( ) ; $ inherited = array ( ) ; foreach ( $ parents as $ parent ) { if ( isset ( $ rolePrivileges [ $ parent ] ) ) { $ inherited = $ inherited + array_flip ( $ rolePrivileges [ $ parent ] [ \ Zend_Acl :: TYPE_ALLOW ] ) ; $ inherited = $ inherited + array_flip ( $ rolePrivileges [ $ parent ] [ \ MUtil_Acl :: INHERITED ] [ \ Zend_Acl :: TYPE_ALLOW ] ) ; } } // Sneaks in: unset ( $ inherited [ "" ] ) ; return $ inherited ; }
docstring: Get the privileges for thess parents
  
  @param array $parents
  @return array privilege => setting
docstring_tokens: Get the privileges for thess parents