Class ID3Lib

Description

Located in /id3lib.php (line 20)


	
			
Variable Summary
string $album
string $artist
int $bitrate
int $disc
string $genre
int $length
object $tags
string $title
int $track
int $year
Method Summary
ID3Lib __construct ([string $file = null])
string getErr ()
boolean readFile (string $fileName)
boolean savePicture (string $file)
Variables
string $album (line 44)

Album Title

  • access: public
string $artist (line 38)

Song Artist

  • access: public
int $bitrate (line 80)

Average bitrate of song

  • access: public
int $disc (line 62)

Disc number within set

  • access: public
string $genre (line 50)

Song Genre

  • access: public
int $length (line 74)

Song duration in seconds

  • access: public
object $tags (line 26)

Object of all the tags within the MP3 file

  • access: public
string $title (line 32)

Song Title

  • access: public
int $track (line 56)

Track number on disc

  • access: public
int $year (line 68)

Year of song's release

  • access: public
Methods
Constructor __construct (line 112)

Constructor

  • access: public
ID3Lib __construct ([string $file = null])
  • string $file: Optional path of MP3 file to read
getErr (line 203)

Returns an error message should something have occured

  • return: The error message
  • access: public
string getErr ()
readFile (line 126)

Reads in ID3 information of an MP3 file

  • return: Returns true on success, false on error. Errors can be retrieved with getErr
  • access: public
boolean readFile (string $fileName)
  • string $fileName: Path and filename of MP3 file to read
savePicture (line 176)

Saves JPEG picture data present in the MP3 file

  • return: Returns true on success, false on error. Errors can be retrieved with getErr
  • access: public
boolean savePicture (string $file)
  • string $file: Path and filename of picture to save

Documentation generated on Sat, 06 Nov 2010 13:35:05 -0500 by phpDocumentor 1.4.3