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

Class: Net_CDDB_Protocol_HTTP

Source Location: /Net_CDDB-0.3.0/CDDB/Protocol/Http.php

Class Overview

Net_CDDB_Protocol
   |
   --Net_CDDB_Protocol_HTTP

Connection class for CDDB access using HTTP wrappers


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Net_CDDB_Protocol

Net_CDDB_Protocol::remote()
Tell whether or not a protocol acts on a remote resource

Class Details

[line 38]
Connection class for CDDB access using HTTP wrappers


[ Top ]


Class Variables

$_buffer =

[line 46]

String buffer to store response
  • Access: protected

Type:   string


[ Top ]

$_client =

[line 102]

Client string to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_host =

[line 94]

Hostname to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_port =

[line 78]

HTTP port to connect on ( 80 )
  • Access: protected

Type:   integer


[ Top ]

$_request_uri =

[line 62]

URI to use access CGI program with ( /~cddb/cddb.cgi )
  • Access: protected

Type:   string


[ Top ]

$_server =

[line 70]

HTTP server to connect to ( freedb.org )
  • Access: protected

Type:   string


[ Top ]

$_status_buffer =

[line 54]

Integer buffer to store HTTP response ( 200 OK, etc. )
  • Access: protected

Type:   integer


[ Top ]

$_user =

[line 86]

Username to report to CDDB server
  • Access: protected

Type:   string


[ Top ]

$_version =

[line 110]

Client version string to report to CDDB server
  • Access: protected

Type:   string


[ Top ]



Method Detail

Net_CDDB_Protocol_HTTP (Constructor)   [line 123]

void Net_CDDB_Protocol_HTTP( string $protocol, array $option_params)

Construct a Net_CDDB_HTTP protocol object
  • Todo: Make protocol subclasses set defaults for any passed optoin parameters instead of Net_CDDB_Client (ie: option_params['host'])
  • Access: public

Parameters:

string   $protocol   —  DSN string
array   $option_params   —  An array of options/parameters

[ Top ]

connect   [line 152]

bool connect( )

Establish a connection to the HTTP server
  • Access: public

[ Top ]

connected   [line 164]

bool connected( )

Tell whether or not a connection has been established already
  • Access: public

[ Top ]

disconnect   [line 245]

bool disconnect( )

Disconnect from the server
  • Access: public

[ Top ]

recieve   [line 221]

string recieve( )

Receive a response after issuing a command with send()
  • See: Net_CDDB_HTTP::send()
  • Access: public

[ Top ]

send   [line 178]

bool send( string $query)

Send a query to the HTTP CDDB server

Parameters:

string   $query   — 

[ Top ]

status   [line 233]

int status( )

Return the status code from the last request
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:56:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.