HTTP_OAuth
[ class tree: HTTP_OAuth ] [ index: HTTP_OAuth ] [ all elements ]

Class: HTTP_OAuth_Message

Source Location: /HTTP_OAuth-0.3.1/HTTP/OAuth/Message.php

Class Overview

HTTP_OAuth
   |
   --HTTP_OAuth_Message

HTTP_OAuth_Message


Author(s):

Copyright:

  • 2009 Jeff Hodsdon <jeffhodsdon@gmail.com>

Variables

Methods


Child classes:

HTTP_OAuth_Consumer_Request
HTTP_OAuth_Consumer_Request
HTTP_OAuth_Consumer_Response
HTTP_OAuth_Consumer_Response
HTTP_OAuth_Provider_Request
HTTP_OAuth_Provider_Request
HTTP_OAuth_Provider_Response
HTTP_OAuth_Provider_Response

Inherited Variables

Inherited Methods

Class: HTTP_OAuth

HTTP_OAuth::attachLog()
Attaches an instance of PEAR Log
HTTP_OAuth::buildHttpQuery()
Build HTTP Query
HTTP_OAuth::debug()
Log debug message
HTTP_OAuth::detachLog()
Detaches an instance of PEAR Log
HTTP_OAuth::err()
Log error message
HTTP_OAuth::info()
Log info message
HTTP_OAuth::log()
Log a message
HTTP_OAuth::urldecode()
URL Decode
HTTP_OAuth::urlencode()
URL Encode

Class Details

[line 42]
HTTP_OAuth_Message

Main message class for Request and Response classes to extend from. Provider and Consumer packages use this class as there parent for the request/response classes. This contains specification parameters handling and ArrayAccess, Countable, IteratorAggregate features.



[ Top ]


Class Variables

$oauthParams = array(
        'consumer_key',
        'token',
        'token_secret',
        'signature_method',
        'signature',
        'timestamp',
        'nonce',
        'verifier',
        'version',
        'callback',
        'session_handle'
    )

[line 52]

OAuth Parameters
  • Var: OAuth parameters
  • Access: protected

Type:   string


[ Top ]

$parameters = array()

[line 71]

Parameters
  • Var: Parameters
  • Access: protected

Type:   array


[ Top ]



Method Detail

count   [line 221]

int count( )

Count
  • Return: Amount of parameters
  • Access: public

[ Top ]

getIterator   [line 231]

ArrayIterator getIterator( )

Get iterator
  • Return: Iterator for self::$parameters
  • Access: public

[ Top ]

getOAuthParameters   [line 78]

array getOAuthParameters( )

Get OAuth specific parameters
  • Return: OAuth specific parameters
  • Access: public

[ Top ]

getParameters   [line 97]

array getParameters( )

Get parameters
  • Return: Request's parameters
  • Access: public

[ Top ]

getSignatureMethod   [line 123]

string getSignatureMethod( )

Get signature method
  • Return: Signature method
  • Access: public

[ Top ]

offsetExists   [line 174]

bool offsetExists( string $offset)

Offset exists
  • Return: Offset exists or not
  • Access: public

Parameters:

string   $offset   —  Name of the offset

[ Top ]

offsetGet   [line 186]

string offsetGet( string $offset)

Offset get
  • Return: Offset value
  • Access: public

Parameters:

string   $offset   —  Name of the offset

[ Top ]

offsetSet   [line 199]

void offsetSet( string $offset, string $value)

Offset set
  • Access: public

Parameters:

string   $offset   —  Name of the offset
string   $value   —  Value of the offset

[ Top ]

offsetUnset   [line 211]

void offsetUnset( string $offset)

Offset unset
  • Access: public

Parameters:

string   $offset   —  Name of the offset

[ Top ]

prefixParameter   [line 245]

string prefixParameter( string $param)

Prefix parameter

Prefixes a parameter name with oauth_ if it is a valid oauth paramter

  • Return: Prefix parameter
  • Access: protected

Parameters:

string   $param   —  Name of the parameter

[ Top ]

setParameters   [line 111]

void setParameters( array $params)

Set parameters
  • Access: public

Parameters:

array   $params   —  Name => value pair array of parameters

[ Top ]

__get   [line 139]

mixed __get( string $var)

Get
  • Return: Parameter if exists, else null
  • Access: public

Parameters:

string   $var   —  Variable to get

[ Top ]

__set   [line 162]

void __set( string $var, mixed $val)

Set
  • Access: public

Parameters:

string   $var   —  Name of the variable
mixed   $val   —  Value of the variable

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:55:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.