wppaste
WordPress

getid3_handler

Source
wp-includes/ID3/getid3.php:2114

Compatibility

WordPress
core
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Properties · 6

$getid3getID3protected
$data_string_flagboolprotected
Analyzing filepointer or string.
$data_stringstringprotected
String to analyze.
$data_string_positionintprotected
Seek position in string.
$data_string_lengthintprotected
String length.
$dependency_tostringprivate

Methods · 14

Source code

abstract class getid3_handler{ 	/**	* @var getID3	*/	protected $getid3;                       // pointer 	/**	 * Analyzing filepointer or string.	 *	 * @var bool	 */	protected $data_string_flag     = false; 	/**	 * String to analyze.	 *	 * @var string	 */	protected $data_string          = ''; 	/**	 * Seek position in string.	 *	 * @var int	 */	protected $data_string_position = 0; 	/**	 * String length.	 *	 * @var int	 */	protected $data_string_length   = 0; 	/**	 * @var string	 */	private $dependency_to; 	/**	 * getid3_handler constructor.	 *	 * @param getID3 $getid3	 * @param string $call_module	 */	public function __construct(getID3 $getid3, $call_module=null) {		$this->getid3 = $getid3; 		if ($call_module) {			$this->dependency_to = str_replace('getid3_', '', $call_module);		}	} 	/**	 * Analyze from file pointer.	 *	 * @return bool	 */	abstract public function Analyze(); 	/**	 * Analyze from string instead.	 *	 * @param string $string	 */	public function AnalyzeString($string) {		// Enter string mode		$this->setStringMode($string); 		// Save info		$saved_avdataoffset = $this->getid3->info['avdataoffset'];		$saved_avdataend    = $this->getid3->info['avdataend'];		$saved_filesize     = (isset($this->getid3->info['filesize']) ? $this->getid3->info['filesize'] : null); // may be not set if called as dependency without openfile() call 		// Reset some info		$this->getid3->info['avdataoffset'] = 0;		$this->getid3->info['avdataend']    = $this->getid3->info['filesize'] = $this->data_string_length;

Changelog

Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/ID3/getid3.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.