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

Class: Services_TwitPic_Request_Common

Source Location: /Services_TwitPic-0.1.0/Services/TwitPic/Request/Common.php

Class Overview


Outlines the interface for the Request objects.


Author(s):

Copyright:

  • 2008 Bill Shupp

Variables

Methods


Child classes:

Services_TwitPic_Request_HTTPRequest
HTTP_Request driver for Services_TwitPic

Inherited Variables

Inherited Methods


Class Details

[line 30]
Outlines the interface for the Request objects.


[ Top ]


Class Variables

$twit =

[line 45]

Instance of Services_TwitPic. Used for getting options.
  • Access: protected

Type:   mixed


[ Top ]

$uri =

[line 37]

Endpoint being used.
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 55]

void __construct( string $uri, Services_TwitPic $twit)

Stores the endpoint uri and the instance of Services_TwitPic
  • Access: public

Overridden in child classes as:

Services_TwitPic_Request_HTTPRequest::__construct()
Sets the options, endpoint, and instatiates HTTP_Request

Parameters:

string   $uri   —  Endpoint URI.
Services_TwitPic   $twit   —  Services_TwitPic instance

[ Top ]

getResponseBody   [line 99]

string getResponseBody( )

Gets the body of the response.
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_TwitPic_Request_HTTPRequest::getResponseBody()
Gets the body of the response.
Services_TwitPic_Request_Mock::getResponseBody()
Returns the canned response body

[ Top ]

getResponseCode   [line 92]

int getResponseCode( )

Gets the response code.
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_TwitPic_Request_HTTPRequest::getResponseCode()
Gets the response code of the request.
Services_TwitPic_Request_Mock::getResponseCode()
Returns the canned response code

[ Top ]

sendRequest   [line 85]

void sendRequest( )

Actually sends the request.
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_TwitPic_Request_HTTPRequest::sendRequest()
Sets the User-Agent and actually sends the request to the TwitPic API.
Services_TwitPic_Request_Mock::sendRequest()
Doesn't actually send anything

[ Top ]

setImage   [line 78]

void setImage( mixed $file)

Sets the image filename to be uploaded.
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_TwitPic_Request_HTTPRequest::setImage()
Sets the image filename to be uploaded.

Parameters:

mixed   $file   —  Filename of the image

[ Top ]

setPostVar   [line 69]

void setPostVar( string $field, mixed $value)

Sets a POST variable.
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_TwitPic_Request_HTTPRequest::setPostVar()
Sets a POST variable.

Parameters:

string   $field   —  Field name
mixed   $value   —  Field value

[ Top ]


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