You are here

function getid3_instance in getID3() 7

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.2 getid3.module \getid3_instance()

Create and initialize an instance of getID3 class.

1 call to getid3_instance()
getid3_analyze in ./getid3.module
Analyze file and return its media information.

File

./getid3.module, line 82

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;
}