Пример #1
0
 /**
  * Adds a new frame to the tag and returns it.
  *
  * @param Zend_Media_Id3_Frame $frame The frame to add.
  * @return Zend_Media_Id3_Frame
  */
 public function addFrame($frame)
 {
     $frame->setOptions($this->getOptions());
     $frame->setEncoding($this->getOption('encoding', $this->getOption('version', 4) < 4 ? Zend_Media_Id3_Encoding::ISO88591 : Zend_Media_Id3_Encoding::UTF));
     if (!$this->hasFrame($frame->getIdentifier())) {
         $this->_frames[$frame->getIdentifier()] = array();
     }
     return $this->_frames[$frame->getIdentifier()][] = $frame;
 }