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

Class: DHTTPBase

Source Location: /Remote/HTTP/DHTTPBase.php

Class Overview

DObject
   |
   --DHTTPBase

Base HTTP Class


Variables

Methods


Child classes:

DProxyHTTP
Proxy HTTP class

Inherited Constants

Inherited Variables

Inherited Methods

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 16]
Base HTTP Class



[ Top ]


Class Variables

$directHeaderMode =  false

[line 49]

Direct header mode



Tags:

access:  public

Type:   boolean


[ Top ]

$directHeaderModeDenyFilter = array()

[line 55]

Deny filter



Tags:

access:  public

Type:   array


[ Top ]

$headers = array()

[line 43]

Headers array

All headers set by the server




Tags:

access:  public

Type:   array


[ Top ]

$HTMLContentArray = array()

[line 25]

Array content data

Every element of the array is a line in the file




Tags:

access:  public

Type:   array


[ Top ]

$HTMLContentString =  ""

[line 34]

String content data

Total HTML content




Tags:

access:  public

Type:   string


[ Top ]



Class Methods


constructor __construct [line 63]

DHTTPBase __construct( )

Constructor



Tags:

access:  public


Overridden in child classes as:

DProxyHTTP::__construct()
Constructor

Overrides DObject::__construct() (Constructor)

[ Top ]

method getURL [line 199]

string getURL( string $url, [DCURLUsernamePasswordObject $CURLOPT_USERPWD = null])

Gets to a givven URL

This method requires Curl library else returns blank string




Tags:

access:  public


Parameters:

string   $url  
DCURLUsernamePasswordObject   $CURLOPT_USERPWD  

[ Top ]

method loadUrl [line 231]

boolean loadUrl( string $url)

Loads the $url content in the HTMLContentArray member variable



Tags:

access:  public


Overridden in child classes as:

DProxyHTTP::loadUrl()
Loads the $url content in the HTMLContentArray member variable

Parameters:

string   $url  

[ Top ]

method postFile [line 162]

string postFile( string $url, string $fileName, string $filePath, [DCURLUsernamePasswordObject $CURLOPT_USERPWD = null])

Posts file to a givven URL

This method requires Curl library else returns blank string




Tags:

access:  public


Parameters:

string   $url  
string   $fileName   This is the file name
string   $filePath   This is the file path
DCURLUsernamePasswordObject   $CURLOPT_USERPWD  

[ Top ]

method postUrl [line 78]

string postUrl( string $url, [string $paramsString = ""], [DCURLUsernamePasswordObject $CURLOPT_USERPWD = null])

Posts to a givven URL

This method requires Curl library else returns blank string




Tags:

access:  public


Parameters:

string   $url  
string   $paramsString   This is in the way param1=value1&param2=value2&...
DCURLUsernamePasswordObject   $CURLOPT_USERPWD  

[ Top ]

method toFile [line 248]

DFile toFile( string $fileName)

Saves data to file



Tags:

access:  public


Parameters:

string   $fileName  

[ Top ]

method toStr [line 269]

string toStr( )

Gets string raw data



Tags:

access:  public


[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:06:15 +0300 by phpDocumentor 1.4.3