public function __construct(getID3 $getid3) { parent::__construct($getid3); // extends getid3_handler::__construct() // initialize all GUID constants $GUIDarray = $this->KnownGUIDs(); foreach ($GUIDarray as $GUIDname => $hexstringvalue) { if (!defined($GUIDname)) { define($GUIDname, $this->GUIDtoBytestring($hexstringvalue)); } } }
public function __construct(getID3 $getid3) { parent::__construct($getid3); if ((bool) ini_get('safe_mode')) { throw new getid3_exception('PHP running in Safe Mode - backtick operator not available, cannot analyze Shorten files.'); } if (!`head --version`) { throw new getid3_exception('head[.exe] binary not found in path. UNIX: typically /usr/bin. Windows: typically c:\\windows\\system32.'); } if (!`shorten -l`) { throw new getid3_exception('shorten[.exe] binary not found in path. UNIX: typically /usr/bin. Windows: typically c:\\windows\\system32.'); } }
public function __construct(getID3 $getid3) { parent::__construct($getid3); // Populate bindec_cache for ($i = 0; $i < 256; $i++) { $this->decbin_cache[chr($i)] = str_pad(decbin($i), 8, '0', STR_PAD_LEFT); } // Init cache $this->bitrate_cache = array(); // Fast scanning? if (!$getid3->option_accurate_results) { $this->option_max_frames_to_scan = 200; $getid3->warning('option_accurate_results set to false - bitrate and playing time are not accurate.'); } }