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

Class: vainfo

Source Location: /lib/class/vainfo.class.php

Class Overview


vainfo This class takes the information pulled from getID3 and returns it in a Ampache friendly way.


Variables

Methods



Class Details

[line 27]
vainfo This class takes the information pulled from getID3 and returns it in a Ampache friendly way.



[ Top ]


Class Variables

$encoding =  ''

[line 30]


Type:   mixed


[ Top ]

$encoding_id3v1 =  ''

[line 31]


Type:   mixed


[ Top ]

$encoding_id3v2 =  ''

[line 32]


Type:   mixed


[ Top ]

$filename =  ''

[line 35]


Type:   mixed


[ Top ]

$tags = array()

[line 37]


Type:   mixed


[ Top ]

$type =  ''

[line 36]


Type:   mixed


[ Top ]

$_dir_pattern =  ''

[line 46]


Type:   mixed


[ Top ]

$_file_encoding =  ''

[line 44]


Type:   mixed


[ Top ]

$_file_pattern =  ''

[line 45]


Type:   mixed


[ Top ]

$_getID3 =  ''

[line 42]


Type:   mixed


[ Top ]

$_iconv =  false

[line 43]


Type:   mixed


[ Top ]

$_raw = array()

[line 40]


Type:   mixed


[ Top ]

$_raw2 = array()

[line 41]


Type:   mixed


[ Top ]



Class Methods


static method clean_tag_info [line 205]

static void clean_tag_info( $results, $key, $filename)

clean_tag_info

This function takes the array from vainfo along with the key we've decided on and the filename and returns it in a sanatized format that ampache can actually use




Tags:

access:  public


Parameters:

   $results  
   $key  
   $filename  

[ Top ]

static method get_tag_type [line 168]

static void get_tag_type( $results)

get_tag_type

This takes the result set, and the the tag_order As defined by your config file and trys to figure out which tag type it should use, if your tag_order doesn't match anything then it just takes the first one it finds in the results.




Tags:

access:  public


Parameters:

   $results  

[ Top ]

constructor __construct [line 53]

vainfo __construct( $file, [ $encoding = ''], [ $encoding_id3v1 = ''], [ $encoding_id3v2 = ''], $dir_pattern, $file_pattern)

Constructor

This function just sets up the class, it doesn't actually pull the information




Tags:

access:  public


Parameters:

   $file  
   $encoding  
   $encoding_id3v1  
   $encoding_id3v2  
   $dir_pattern  
   $file_pattern  

[ Top ]

method get_info [line 135]

void get_info( )

get_info

This function takes a filename and returns the $_info array all filled up with tagie goodness or if specified filename pattern goodness




Tags:

access:  public


[ Top ]

method _get_tags [line 302]

void _get_tags( )

_get_tags

This function takes the raw information and the type and attempts to gather the tags and then normalize them into ['tag_name']['var'] = value




Tags:

access:  public


[ Top ]

method _get_type [line 261]

void _get_type( )

_get_type

This function takes the raw information and figures out what type of file we are dealing with for use by the tag function




Tags:

access:  public


[ Top ]


Documentation generated on Thu, 12 Feb 2009 08:00:12 +0900 by phpDocumentor 1.4.2