Item Information Box provides extra information about selected * items, including symbolic (file) names. It may optionally occur, but * if it does, it must be interpreted, as item protection or content encoding * may have changed the format of the data in the item. If both content encoding * and protection are indicated for an item, a reader should first un-protect * the item, and then decode the item's content encoding. If more control is * needed, an IPMP sequence code may be used. * * @package php-reader * @subpackage ISO 14496 * @author Sven Vollbehr * @copyright Copyright (c) 2008 The PHP Reader Project Workgroup * @license http://code.google.com/p/php-reader/wiki/License New BSD License * @version $Rev: 92 $ */ final class ISO14496_Box_IINF extends ISO14496_Box { /** * Constructs the class with given parameters and reads box related data from * the ISO Base Media file. * * @param Reader $reader The reader object. */ public function __construct($reader = null, &$options = array()) { parent::__construct($reader, $options); $this->setContainer(true); if ($reader === null) return; $this->_reader->skip(2); $this->constructBoxes(); } /** * Returns the box raw data. * * @return string */ public function __toString($data = "") { return parent::__toString(Transform::toUInt16BE(count($this->_boxes))); } }