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

Class: Net_CDDB_Track

Source Location: /Net_CDDB-0.3.0/CDDB/Track.php

Class Overview


Class to represent an individual track of CDDB disc record


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 20]
Class to represent an individual track of CDDB disc record
  • Todo: Make sure track length reports are correct
  • Todo: Implement toString() method for tracks


[ Top ]


Class Variables

$_artist =

[line 44]

Artist for the track
  • Access: protected

Type:   string


[ Top ]

$_extra =

[line 28]

Stores extra data about the track (lyrics, sub-title, etc.)
  • Access: protected

Type:   string


[ Top ]

$_length =

[line 60]

Length of the track (in seconds)
  • Access: protected

Type:   integer


[ Top ]

$_offset =

[line 52]

Offset of the track on the disc
  • Access: protected

Type:   integer


[ Top ]

$_title =

[line 36]

Title of the track
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 82]

Net_CDDB_Track __construct( mixed $arr_or_title, [ $tartist = ''], [integer $offset = 0], [ $extt = ''], [integer $length = 0], string $extra)

Construct a new Net_CDDB_Track object (PHP v5.x)
  • Access: public

Parameters:

mixed   $arr_or_title   —  Either an associative array or the track title
integer   $offset   — 
string   $extra   — 
integer   $length   — 
   $tartist   — 
   $extt   — 

[ Top ]

Net_CDDB_Track (Constructor)   [line 67]

Net_CDDB_Track Net_CDDB_Track( $arr_or_title, [ $offset = 0], [ $extra = ''], [ $length = 0])

Construct a new Net_CDDB_Track object (PHP v4.x)

Parameters:

   $arr_or_title   — 
   $offset   — 
   $extra   — 
   $length   — 

[ Top ]

getArtist   [line 129]

string getArtist( )

Get the artist for the track
  • Access: protected

[ Top ]

getExtraData   [line 141]

string getExtraData( )

Get the extra data for the track (lyrics, sub-title, etc.)
  • Access: protected

[ Top ]

getLength   [line 154]

mixed getLength( [boolean $formatted = false])

Get the length of the track (in seconds or formatted as HH:MM:SS)
  • Access: protected

Parameters:

boolean   $formatted   —  TRUE if you want a string formatted as HH:MM:SS, otherwise the track length in seconds will be returned

[ Top ]

getOffset   [line 187]

integer getOffset( )

Get the offset of the track
  • Access: protected

[ Top ]

getTitle   [line 117]

string getTitle( boolean $with_artist)

Get the title of the track
  • Access: protected

Parameters:

boolean   $with_artist   — 

[ Top ]

setLength   [line 175]

void setLength( integer $time)

Set the length of the track (in seconds)
  • Access: protected

Parameters:

integer   $time   — 

[ Top ]


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