* @author Ryan Butterfield * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id$ */ abstract class Zend_Media_Id3_LinkFrame extends Zend_Media_Id3_Frame { /** @var string */ protected $_link; /** * 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) { $this->_link = implode ($this->_explodeString8 ($this->_reader->read($this->_reader->getSize()), 1), ''); } } /** * Returns the link associated with the frame. * * @return string */ public function getLink() { return $this->_link; } /** * Sets the link. The link encoding is always ISO-8859-1. * * @param string $link The link. */ public function setLink($link) { $this->_link = $link; } /** * Writes the frame raw data without the header. * * @param Zend_Io_Writer $writer The writer object. * @return void */ protected function _writeData($writer) { $writer->write($this->_link); } }