Exemplo n.º 1
0
 /**
  * Constructs the class with given parameters and parses object related
  * data.
  *
  * @param Zend_Io_Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($this->_reader === null) {
         return;
     }
     @(list($this->_number, $this->_total) = explode("/", $this->getText()));
 }
Exemplo n.º 2
0
 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     if ($this->getOption('version', 4) >= 4) {
         parent::_writeData($writer);
     } else {
         $this->setEncoding(Zend_Media_Id3_Encoding::ISO88591);
         parent::_writeData($writer);
     }
 }
Exemplo n.º 3
0
 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $this->setEncoding(Zend_Media_Id3_Encoding::ISO88591);
     parent::_writeData($writer);
 }
Exemplo n.º 4
0
 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $this->setText($this->_country . $this->_registrant . $this->_year . $this->_uniqueNumber, Zend_Media_Id3_Encoding::ISO88591);
     parent::_writeData($writer);
 }