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

Class: MP3_IDv2_Reader

Source Location: /MP3_IDv2-0.1.8/MP3/IDv2/Reader.php

Class Overview

Reads Idv2 tags from a file.



  • Release: @package_version@


  • 2006 Alexander Merz


Inherited Variables

Inherited Methods

Class Details

[line 95]
Reads Idv2 tags from a file.

This class reads Idv2 tags from a file. Actually this class reads only the first founded tag in a file This will become more flexible in future releases.

[ Top ]

Method Detail

findHeader   [line 254]

bool findHeader( int $fh)

Find the beginning of a tag in a file.
  • Return: true, if a tag was found, false if not
  • Todo: Make it faster, use a larger read buffer
  • Access: public


int   $fh   —  the file stream to read

[ Top ]

getTag   [line 278]

object MP3_IDv2_Tag getTag( )

Returns the tag found in the file
  • Return: the tag data structure
  • Access: public

[ Top ]

read   [line 116]

bool read( string $filename)

Reads the first tag found in a tag.

The method reads a tag from the file and parses it into a Tag datastructure.

  • Return: true, if reading was ok
  • See: MP3_IDv2_Reader::getTag()
  • Access: public


string   $filename   —  name of the file to read from

[ Top ]

Documentation generated on Mon, 11 Mar 2019 15:49:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.