Primary Item Box must * occur, or there must be a box within the meta-box (e.g. an * {@link ISO14496_Box_XML XML Box}) containing the primary information in the * format required by the identified handler. * * @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_PITM extends ISO14496_Box_Full { /** @var string */ private $_itemId; /** * 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, &$options = array()) { parent::__construct($reader, $options); $this->_itemId = $this->_reader->readUInt16BE(); } /** * Returns the identifier of the primary item. * * @return integer */ public function getItemId() { return $this->_itemId; } }