Class ISO14496_Box_DATA

Description

A box that contains data for iTunes/iPod specific boxes.

  • author: Sven Vollbehr <svollbehr@gmail.com>
  • version: $Rev: 101 $
  • copyright: Copyright (c) 2008 The PHP Reader Project Workgroup
  • since: iTunes/iPod specific
  • license: New BSD License

Located in /ISO14496/Box/ILST.php (line 166)

ISO14496_Box
   |
   --ISO14496_Box_Full
      |
      --ISO14496_Box_DATA
Class Constant Summary
 INTEGER = 0x0
 JPEG = 0xd
 PNG = 0xe
 STRING = 0x1
Method Summary
mixed getValue ()
mixed setValue ( $value, [ $type = false])
ISO14496_Box_DATA __construct ([Reader $reader = null], [ &$options = array()])
mixed __get (string $name)
string __toString ([ $data = ""])
Variables
Methods
getValue (line 222)

Returns the value this box contains.

  • access: public
mixed getValue ()
setValue (line 229)

Sets the value this box contains.

  • access: public
mixed setValue ( $value, [ $type = false])
  • $value
  • $type
Constructor __construct (line 195)

Constructs the class with given parameters and reads box related data from the ISO Base Media file.

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

Redefinition of:
ISO14496_Box_Full::__construct()
Constructs the class with given parameters and reads box related data from the ISO Base Media file.
__get (line 251)

Override magic function so that $obj->data will return the current box instead of an error. For other values the method will attempt to call a getter method.

If there are no getter methods with given name, the method will yield an exception.

  • access: public
mixed __get (string $name)
  • string $name: The box or field name.

Redefinition of:
ISO14496_Box::__get()
Magic function so that $obj->value will work. If called on a container box, the method will first attempt to return the first contained box that matches the identifier, and if not found, invoke a getter method.
__toString (line 265)

Returns the box raw data.

  • access: public
string __toString ([ $data = ""])
  • $data

Redefinition of:
ISO14496_Box_Full::__toString()
Returns the box raw data.

Inherited Methods

Inherited From ISO14496_Box_Full

ISO14496_Box_Full::__construct()
ISO14496_Box_Full::getFlags()
ISO14496_Box_Full::getVersion()
ISO14496_Box_Full::hasFlag()
ISO14496_Box_Full::setFlags()
ISO14496_Box_Full::setVersion()
ISO14496_Box_Full::__toString()

Inherited From ISO14496_Box

ISO14496_Box::__construct()
ISO14496_Box::addBox()
ISO14496_Box::constructBoxes()
ISO14496_Box::getBoxes()
ISO14496_Box::getBoxesByIdentifier()
ISO14496_Box::getContainer()
ISO14496_Box::getOffset()
ISO14496_Box::getOption()
ISO14496_Box::getOptions()
ISO14496_Box::getParent()
ISO14496_Box::getSize()
ISO14496_Box::getType()
ISO14496_Box::hasBox()
ISO14496_Box::isContainer()
ISO14496_Box::setContainer()
ISO14496_Box::setOffset()
ISO14496_Box::setOption()
ISO14496_Box::setOptions()
ISO14496_Box::setParent()
ISO14496_Box::setSize()
ISO14496_Box::setType()
ISO14496_Box::__get()
ISO14496_Box::__isset()
ISO14496_Box::__set()
ISO14496_Box::__toString()
ISO14496_Box::__unset()
Class Constants
INTEGER = 0x0 (line 172)

A flag to indicate that the data is an unsigned 8-bit integer.

INTEGER_OLD_STYLE = 0x15 (line 178)

A flag to indicate that the data is an unsigned 8-bit integer. Different value used in old versions of iTunes.

JPEG = 0xd (line 184)

A flag to indicate that the data is the contents of an JPEG image.

PNG = 0xe (line 187)

A flag to indicate that the data is the contents of a PNG image.

STRING = 0x1 (line 181)

A flag to indicate that the data is a string.

Documentation generated on Fri, 05 Sep 2008 20:18:52 +0300 by phpDocumentor 1.4.1