Item Protection Box provides an array of item protection * information, for use by the {@link ISO14496_Box_IINF Item Information Box}. * * @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_IPRO 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))); } }