Moodle  2.2.1
http://www.collinsharper.com
Zend_Gdata_App_LoggingHttpClientAdapterSocket Class Reference
Inheritance diagram for Zend_Gdata_App_LoggingHttpClientAdapterSocket:
Collaboration diagram for Zend_Gdata_App_LoggingHttpClientAdapterSocket:

Public Member Functions

 connect ($host, $port=80, $secure=false)
 write ($method, $uri, $http_ver= '1.1', $headers=array(), $body= '')
 read ()
 close ()

Protected Member Functions

 log ($message)

Protected Attributes

 $log_handle = null

Detailed Description

Definition at line 41 of file LoggingHttpClientAdapterSocket.php.


Member Function Documentation

close ( )

Close the connection to the server

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 113 of file LoggingHttpClientAdapterSocket.php.

Here is the call graph for this function:

connect ( host,
port = 80,
secure = false 
)

Connect to the remote server

Parameters:
string$host
int$port
boolean$secure
int$timeout

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 74 of file LoggingHttpClientAdapterSocket.php.

Here is the call graph for this function:

log ( message) [protected]

Log the given message to the log file. The log file is configured as the config param 'logfile'. This method opens the file for writing if necessary.

Parameters:
string$messageThe message to log

Definition at line 58 of file LoggingHttpClientAdapterSocket.php.

Here is the caller graph for this function:

read ( )

Read response from server

Returns:
string

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 102 of file LoggingHttpClientAdapterSocket.php.

Here is the call graph for this function:

write ( method,
uri,
http_ver = '1.1',
headers = array(),
body = '' 
)

Send request to the remote server

Parameters:
string$method
Zend_Uri_Http$uri
string$http_ver
array$headers
string$body
Returns:
string Request as string

Reimplemented from Zend_Http_Client_Adapter_Socket.

Definition at line 90 of file LoggingHttpClientAdapterSocket.php.

Here is the call graph for this function:


Field Documentation

$log_handle = null [protected]

Definition at line 49 of file LoggingHttpClientAdapterSocket.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations