function getExtensionArgs($request = null)
    {
        $aliases = new Auth_OpenID_NamespaceMap();

        $required = array();
        $if_available = array();

        $ax_args = $this->_newArgs();

        foreach ($this->requested_attributes as $type_uri => $attribute) {
            if ($attribute->alias === null) {
                $alias = $aliases->add($type_uri);
            } else {
                $alias = $aliases->addAlias($type_uri, $attribute->alias);

                if ($alias === null) {
                    return new Auth_OpenID_AX_Error(
                      sprintf("Could not add alias %s for URI %s",
                              $attribute->alias, $type_uri
                      ));
                }
            }

            if ($attribute->required) {
                $required[] = $alias;
            } else {
                $if_available[] = $alias;
            }

            if ($attribute->count != 1) {
                $ax_args['count.' . $alias] = strval($attribute->count);
            }

            $ax_args['type.' . $alias] = $type_uri;
        }

        if ($required) {
            $ax_args['required'] = implode(',', $required);
        }

        if ($if_available) {
            $ax_args['if_available'] = implode(',', $if_available);
        }

        return $ax_args;
    }
function getExtensionArgs($request = null)
    {
        $aliases = new Auth_OpenID_NamespaceMap();

        $required = array();
        $if_available = array();

        $ax_args = $this->_newArgs();

        foreach ($this->requested_attributes as $type_uri => $attribute) {
            if ($attribute->alias === null) {
                $alias = $aliases->add($type_uri);
            } else {
                $alias = $aliases->addAlias($type_uri, $attribute->alias);

                if ($alias === null) {
                    return new Auth_OpenID_AX_Error(
                      sprintf("Could not add alias %s for URI %s",
                              $attribute->alias, $type_uri
                      ));
                }
            }

            if ($attribute->required) {
                $required[] = $alias;
            } else {
                $if_available[] = $alias;
            }

            if ($attribute->count != 1) {
                $ax_args['count.' . $alias] = strval($attribute->count);
            }

            $ax_args['type.' . $alias] = $type_uri;
        }

        if ($required) {
            $ax_args['required'] = implode(',', $required);
        }

        if ($if_available) {
            $ax_args['if_available'] = implode(',', $if_available);
        }

        return $ax_args;
    }
function getExtensionArgs ( $ request = null ) { $ aliases = new Auth_OpenID_NamespaceMap ( ) ; $ required = array ( ) ; $ if_available = array ( ) ; $ ax_args = $ this -> _newArgs ( ) ; foreach ( $ this -> requested_attributes as $ type_uri => $ attribute ) { if ( $ attribute -> alias === null ) { $ alias = $ aliases -> add ( $ type_uri ) ; } else { $ alias = $ aliases -> addAlias ( $ type_uri , $ attribute -> alias ) ; if ( $ alias === null ) { return new Auth_OpenID_AX_Error ( sprintf ( "Could not add alias %s for URI %s" , $ attribute -> alias , $ type_uri ) ) ; } } if ( $ attribute -> required ) { $ required [ ] = $ alias ; } else { $ if_available [ ] = $ alias ; } if ( $ attribute -> count != 1 ) { $ ax_args [ 'count.' . $ alias ] = strval ( $ attribute -> count ) ; } $ ax_args [ 'type.' . $ alias ] = $ type_uri ; } if ( $ required ) { $ ax_args [ 'required' ] = implode ( ',' , $ required ) ; } if ( $ if_available ) { $ ax_args [ 'if_available' ] = implode ( ',' , $ if_available ) ; } return $ ax_args ; }
Get the serialized form of this attribute fetch request.

@param Auth_OpenID_Request|null $request
@return Auth_OpenID_AX_Error|Auth_OpenID_AX_FetchRequest The fetch request message parameters
Get the serialized form of this attribute fetch request .