Auth_OpenID_AX_Message::_checkMode PHP Метод

_checkMode() публичный Метод

Return Auth_OpenID_AX_Error if the mode in the attribute exchange arguments does not match what is expected for this class; true otherwise.
public _checkMode ( $ax_args )
    function _checkMode($ax_args)
    {
        $mode = Auth_OpenID::arrayGet($ax_args, 'mode');
        if ($mode != $this->mode) {
            return new Auth_OpenID_AX_Error(sprintf("Expected mode '%s'; got '%s'", $this->mode, $mode));
        }
        return true;
    }
Auth_OpenID_AX_Message