예제 #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()));
 }
예제 #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);
     }
 }
예제 #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);
 }
예제 #4
0
파일: Tsrc.php 프로젝트: lokamaya/zend-mp3
 /**
  * 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);
 }