function preferredTypes($supported_types)
    {
        $result = array();

        foreach ($supported_types as $st) {
            if (in_array($st, $this->preferred_auth_policies)) {
                $result[] = $st;
            }
        }
        return $result;
    }
function preferredTypes($supported_types)
    {
        $result = array();

        foreach ($supported_types as $st) {
            if (in_array($st, $this->preferred_auth_policies)) {
                $result[] = $st;
            }
        }
        return $result;
    }
function preferredTypes ( $ supported_types ) { $ result = array ( ) ; foreach ( $ supported_types as $ st ) { if ( in_array ( $ st , $ this -> preferred_auth_policies ) ) { $ result [ ] = $ st ; } } return $ result ; }
Given a list of authentication policy URIs that a provider
supports, this method returns the subsequence of those types
that are preferred by the relying party.

@param supported_types: A sequence of authentication policy
type URIs that are supported by a provider

@return array The sub-sequence of the supported types that are
preferred by the relying party. This list will be ordered in
the order that the types appear in the supported_types
sequence, and may be empty if the provider does not prefer any
of the supported authentication types.
Given a list of authentication policy URIs that a provider supports this method returns the subsequence of those types that are preferred by the relying party .