Пример #1
0
 /**
  * Adds a new frame to the tag and returns it.
  *
  * @param ID3_Frame $frame The frame to add.
  * @return ID3_Frame
  */
 public function addFrame($frame)
 {
     $frame->setOptions($this->_options);
     if (!$this->hasFrame($frame->getIdentifier())) {
         $this->_frames[$frame->getIdentifier()] = array();
     }
     return $this->_frames[$frame->getIdentifier()][] = $frame;
 }