========================================
List of all object and function
========================================

VER 1.1.0 	30.09.01 20:07

-------------------------------------------------------------
-------------------------Class and functions-----------------
-------------------------------------------------------------
Class mp3_file :
	function mp3_file($file)			Constructor 

	function get_file_infos() 	      Get all information from a a mp3   	

	function set_database($data)  	set database								
	function get_database() 			get databse									
	function set_table($table)  		set table									
	function get_table() 				get table									
	function add_file_to_database() 	Add file to database						
	function remove_nc_data()	 		Remove non consistant or unknown data at the beginning of the file

	function remove_id3v2() 			Remove id3_v2
	function remove_id3v1() 			Remove id3_v1
	function save_id3v1() 				Edit or add id3_v1						


Class mp3_dir extends mp3_file :
	function mp3_dir($path)				Constructor

	function get_dir_infos($dir) 		give all information about ALL mp3 file in this dir

	function rename_dir()				rename dir 
	function dir_rename_file()			rename all files in a directory
	function dir_save_id3v1()			save id3 v1 for all mp3 in a dir

	function add_dir_to_database() 	Add dir to database					

-------------------------------------------------------------
-------------------------Error tracking----------------------
-------------------------------------------------------------
$this->error			False 	(default)
							True 	one error found see error_msg for last error msg
$this->error_msg		report last error message if error is true

-------------------------------------------------------------
-------------------------Path informations ------------------
-------------------------------------------------------------
$this->file 						filename with path
$this->infos[file_path] 		only path
$this->infos[file_dir]  		directory where the file is (album name)
$this->infos[file_name]			only file name
$this->infos[file_size] 		file size

-------------------------------------------------------------
-------------------------Informations------------------------
-------------------------------------------------------------
$this->infos							give all important information in a multi table
$this->infos[mp3]						boolean 	is this mp3 file valid ?)  if not valid see error_msg !
$this->infos[tag][id3_v2]				"    	this file a id3v2xx  TAG
$this->infos[tag][id3_v1]				"		this file a id3v1xx  TAG
$this->nc_data 							"		internal information, this file has "garbageat the beginning of the file
$this->header_pos						position of the header of the file

-------------------------------------------------------------
-------------------------ID3V1-------------------------------
-------------------------------------------------------------
$this->infos[id3v_1][version] 	version	of id3v1 : 1 or 1.1 (1.1 has track number)
$this->infos[id3v_1][title] 		title
$this->infos[id3v_1][artist] 		artist
$this->infos[id3v_1][album] 		album
$this->infos[id3v_1][year]			year
$this->infos[id3v_1][comment]		comment
$this->infos[id3v_1][track]		track
$this->infos[id3v_1][style]		style


-------------------------------------------------------------
-------------------------ID2V2-------------------------------
-------------------------------------------------------------
$this->infos[id3v_2][infos_sup][maj_version]		2.x.0  x maj version of id3v2
$this->infos[id3v_2][infos_sup][min_version]		2.0.y  y min version of id3v2
$this->infos[id3v_2][version]							complete string with version (2.x.y)
$this->infos[id3v_2][infos_sup][unsynch]			\
$this->infos[id3v_2][infos_sup][exthead]			 \
$this->infos[id3v_2][infos_sup][expind] 			  \_
$this->infos[id3v_2][infos_sup][asfoot] 			  /	Not important information just to decode id3v2
$this->infos[id3v_2][infos_sup][frames_length]	 /
$this->infos[id3v_2][infos_sup][exthead_size]	/
$this->infos[id3v_2][frames][xxxx]					values for xxxx string identification for all information (see $id3v_2_frames[] in constants.inc.php


-------------------------------------------------------------
-------------------------MP3 INFOS---------------------------
-------------------------------------------------------------
$this->infos[general_infos][mpeg] 		MPEG
$this->infos[general_infos][layer] 		Layer
$this->infos[general_infos][crc] 		Crc
$this->infos[general_infos][bitrate] 	Bitrate
$this->infos[general_infos][frequence] frequence
$this->infos[general_infos][padding]	padding
$this->infos[general_infos][extension] extension
$this->infos[general_infos][mode]		mode
$this->infos[general_infos][copyright] copyright
$this->infos[general_infos][original]	original
$this->infos[general_infos][emphasis]	emphasis
$this->infos[general_infos][vbr]			boolean	is the file a VariableBitRate  (Xing technologies)
$this->infos[general_infos][sec_length]		length of music in secondes
$this->infos[general_infos][min_sec_length] 	length in h:m:s mode


-------------------------------------------------------------
-------------------------DataBase variables------------------ 
-------------------------------------------------------------
$this->database		Database set
$this->table			Table set for MP3 Infos + ID3V1 + Path information
$this->result			Return the number of file added to database ( 1 if file object, n if dir object)
$this->mysql[error]	return error msg and
$this->mysql[err_no]	number of mysql error if file object (just for debugging)


-------------------------------------------------------------
--------------------------Dir Class variables----------------
-------------------------------------------------------------
$this->dir_infos[path]			complete path
$this->dir_infos[nb_mp3]		nb of mp3 in this dir
$this->dir_infos[album_name]	name of dir (maybe album name !)


-------------------------------------------------------------
--------------------------Modif TAG's------------------------
-------------------------------------------------------------
$mp3_file->new_id3v1[title] 	\
$mp3_file->new_id3v1[artist]   \
$mp3_file->new_id3v1[album] 	  \
$mp3_file->new_id3v1[year] 	   >  All new values to enter before function save_id3v1()
$mp3_file->new_id3v1[comment]   /
$mp3_file->new_id3v1[track] 	 /
$mp3_file->new_id3v1[style] 	/

-------------------------------------------------------------
--------------------------Modif file/dir name----------------
-------------------------------------------------------------

$this->new_dir						new mp3 dir name to be modified
$this->new_filename				new filename to be modified



[EOF]