You are here

function getid3_instance in getID3() 7.2

Same name and namespace in other branches
  1. 8 getid3.module \getid3_instance()
  2. 5 getid3.module \getid3_instance()
  3. 6 getid3.module \getid3_instance()
  4. 7 getid3.module \getid3_instance()

Create and initialize an instance of getID3 class.

1 call to getid3_instance()
getid3_analyze_file in ./getid3.module
Takes a file entity object and returns ID3 data.

File

./getid3.module, line 88

Code

function getid3_instance() {
  $id3 = NULL;
  if (getid3_load()) {
    $id3 = new getID3();

    // MD5 is a big performance hit. Disable it by default.
    $id3->option_md5_data = FALSE;
    $id3->option_md5_data_source = FALSE;
    $id3->encoding = 'UTF-8';
  }
  return $id3;
}