/** * Constructs the class with given parameters and options. * * @param Zend_Io_Reader $reader The reader object. */ public function __construct($reader) { parent::__construct($reader); $this->_codePage = $this->_reader->readUInt16LE(); $this->_countryCode = $this->_reader->readUInt16LE(); $this->_language = $this->_reader->readUInt16LE(); $this->_dialect = $this->_reader->readUInt16LE(); }
/** * Constructs the class with given parameters and options. * * @param Zend_Io_Reader $reader The reader object. */ public function __construct($reader) { parent::__construct($reader); $startOffset = $this->_reader->getOffset(); $this->_type = $this->_reader->read(4); while ($this->_reader->getOffset() - $startOffset < $this->_size) { $offset = $this->_reader->getOffset(); $identifier = $this->_reader->read(4); $size = $this->_reader->readUInt32LE(); $this->_reader->setOffset($offset); if (@fopen($file = 'Zend/Media/Riff/Chunk/' . ucfirst(strtolower(rtrim($identifier, ' '))) . '.php', 'r', true) !== false) { } if (class_exists($classname = 'Zend_Media_Riff_Chunk_' . ucfirst(strtolower(rtrim($identifier, ' '))))) { $this->_chunks[] = new $classname($this->_reader); $this->_reader->setOffset($offset + 8 + $size); } else { trigger_error('Unknown RIFF chunk: \'' . $identifier . '\' skipped', E_USER_WARNING); $this->_reader->skip(8 + $size); } } }
/** * Constructs the class with given parameters and options. * * @param Zend_Io_Reader $reader The reader object. */ public function __construct($reader) { parent::__construct($reader); require_once 'Zend/Media/Riff/Exception.php'; throw new Zend_Media_Riff_Exception('Not yet implemented'); }
/** * Constructs the class with given parameters and options. * * @param Zend_Io_Reader $reader The reader object. */ public function __construct($reader) { parent::__construct($reader); $this->_value = rtrim($this->_reader->read($this->_size), ""); }
/** * Constructs the class with given parameters and options. * * @param Zend_Io_Reader $reader The reader object. */ public function __construct($reader) { parent::__construct($reader); throw new Zend_Media_Riff_Exception('Not yet implemented'); }
/** * Constructs the class with given parameters and options. * * @param Zend_Io_Reader $reader The reader object. */ public function __construct($reader) { parent::__construct($reader); $this->_tag = new Zend_Media_Id3v2($this->_reader, array('readonly' => true)); }