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

Class: MP3_IDv2_Writer

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

Class Overview


Writes Idv2 tags to a file


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2006 Alexander Merz

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 89]
Writes Idv2 tags to a file

This class writes the given Idv2 tags to a file. Currently the first provided tag is written at the top of the file, removing an existing one. This will become more flexible in future releases.



[ Top ]


Class Variables

$_tags = array()

[line 96]

Stores the tags to write.
  • Var: list of tags
  • Access: protected

Type:   array


[ Top ]



Method Detail

addTag   [line 104]

void addTag( object MP3_IDv2_Tag $tag)

Add a IDv2 tag tag to write to a file.
  • Access: public

Parameters:

object MP3_IDv2_Tag   $tag   —  tag to add

[ Top ]

jumpOverTag   [line 163]

bool jumpOverTag( int $fh)

Looks for the IDv2-tag in a stream and moves the filepointer after the tag, if a tag could be found.
  • Return: true if tag was found, false if no tag was found
  • Access: public

Parameters:

int   $fh   —  the file handle

[ Top ]

write   [line 120]

bool write( string $filename)

Writes the provided tags to a file.

The tags are written to a temporary file first and then renamed to the given filename.

  • Return: true if writing was successful
  • Throws: PEAR_MP3_IDV2_FILENOCOPY, PEAR_MP3_IDV2_FILENOWRITE
  • Access: public

Parameters:

string   $filename   — 

[ Top ]


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