Class ID3_Frame_PCNT

Description

The Play counter is simply a counter of the number of times a file has been played. The value is increased by one every time the file begins to play. There may only be one PCNT frame in each tag.

Located in /ID3/Frame/PCNT.php (line 55)

ID3_Object
   |
   --ID3_Frame
      |
      --ID3_Frame_PCNT
Method Summary
ID3_Frame_PCNT __construct ([Reader $reader = null], [ &$options = array()], Array $options)
void addCounter ()
integer getCounter ()
void setCounter (integer $counter)
string __toString ()
Variables

Inherited Variables

Inherited from ID3_Frame

ID3_Frame::$_data

Inherited from ID3_Object

ID3_Object::$_reader
Methods
Constructor __construct (line 66)

Constructs the class with given parameters and parses object related data.

  • access: public
ID3_Frame_PCNT __construct ([Reader $reader = null], [ &$options = array()], Array $options)
  • Reader $reader: The reader object.
  • Array $options: The options array.
  • &$options

Redefinition of:
ID3_Frame::__construct()
Constructs the class with given parameters and reads object related data from the ID3v2 tag.
addCounter (line 89)

Adds counter by one.

  • access: public
void addCounter ()
getCounter (line 84)

Returns the counter.

  • access: public
integer getCounter ()
setCounter (line 96)

Sets the counter value.

  • access: public
void setCounter (integer $counter)
  • integer $counter: The counter value.
__toString (line 103)

Returns the frame raw data.

  • access: public
string __toString ()

Redefinition of:
ID3_Frame::__toString()
Returns the frame raw data.

Inherited Methods

Inherited From ID3_Frame

ID3_Frame::__construct()
ID3_Frame::getFlags()
ID3_Frame::getIdentifier()
ID3_Frame::getSize()
ID3_Frame::hasFlag()
ID3_Frame::setData()
ID3_Frame::setFlags()
ID3_Frame::setIdentifier()
ID3_Frame::__toString()

Inherited From ID3_Object

ID3_Object::__construct()
ID3_Object::decodeSynchsafe32()
ID3_Object::decodeUnsynchronisation()
ID3_Object::encodeSynchsafe32()
ID3_Object::encodeUnsynchronisation()
ID3_Object::explodeString8()
ID3_Object::explodeString16()
ID3_Object::getOption()
ID3_Object::getOptions()
ID3_Object::setOption()
ID3_Object::setOptions()
ID3_Object::__get()
ID3_Object::__set()
Class Constants

Documentation generated on Fri, 05 Sep 2008 20:19:13 +0300 by phpDocumentor 1.4.1