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

Class: Net_CDDB

Source Location: /Net_CDDB-0.3.0/CDDB.php

Class Overview


Base class for CDDB Client and Server classes


Author(s):

Variables

Methods


Child classes:

Net_CDDB_Server
CDDB Server (ALPHA QUALITY, *USE AT YOUR OWN RISK!*)
Net_CDDB_Client
Class for communication with CDDB/FreeDB.org servers

Inherited Variables

Inherited Methods


Class Details

[line 203]
Base class for CDDB Client and Server classes


[ Top ]


Class Variables

$_debug =

[line 211]

Status of debugging (enabled/disabled)
  • Access: protected

Type:   bool


[ Top ]



Method Detail

calculateDiscId   [line 293]

string calculateDiscId( array $track_offsets, int $length)

Calculate a disc ID based on the track offsets and the disc length

Overridden in child classes as:

Net_CDDB_Client::calculateDiscId()
Calculate a disc ID based on the track offsets and the disc length

Parameters:

array   $track_offsets   —  The offsets of the tracks on the CD
int   $length   —  The total number of seconds for the disc

[ Top ]

debug   [line 220]

void debug( bool $true_or_false)

Enables or disables debugging ( prints out all responses/requests )
  • Access: public

Parameters:

bool   $true_or_false   — 

[ Top ]

_createProtocol   [line 335]

object _createProtocol( $dsn, $options, string $type, array $params)

Create a protocol instance of the given type with the given parameters

Creates a protocol object instance of a given type by protocol type. The array of connection parameters will be passed directly to the protocol instance.


Parameters:

string   $type   — 
array   $params   — 
   $dsn   — 
   $options   — 

[ Top ]

_debug   [line 234]

void _debug( string $msg)

Prints/logs debugging messages
  • Access: protected

Parameters:

string   $msg   —  The debugging message

[ Top ]

_parseRecord   [line 253]

array _parseRecord( string $str, [string $category = ''])

Parse a CDDB style database record into an array

Parameters:

string   $str   — 
string   $category   — 

[ Top ]

_parseResult   [line 268]

array _parseResult( string $str)

Parse a result string returned by a CDDB query into an array

Parameters:

string   $str   — 

[ Top ]


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