cvs: pear /MP3_IDv2/IDv2/Frame APIC.php CommonLink.php CommonText.php IPLS.php MCDI.php PCNT.php POPM.php PRIV.php RBUF.php TALB.php TBPM.php TCOM.php
TCON.php TCOP.php TDAT.php TDLY.php TENC.php TEXT.php TFLT.php TIME.php TIT1.php TIT2.php TIT3.php TKEY.php TLAN.php TLEN.php TMED.php TOAL.php
TOFN.php TOLY.php TOPE.php TORY.php TOWN.php TPE1.php TPE2.php TPE3.php TPE4.php TPOS.php TPUB.php TRCK.php TRDA.php TRSN.php TRSO.php TSIZ.php
TSRC.php TSSE.php TXXX.php TYER.php UFID.php USER.php USLT.php WCOM.php WCOP.php WOAF.php WOAR.php WOAS.php WORS.php WPAY.php WPUB.php WXXX.php

From: Date: Wed, 11 Oct 2006 07:25:39 +0000
Subject: cvs: pear /MP3_IDv2/IDv2/Frame APIC.php CommonLink.php CommonText.php IPLS.php MCDI.php PCNT.php POPM.php PRIV.php RBUF.php TALB.php TBPM.php TCOM.php
TCON.php TCOP.php TDAT.php TDLY.php TENC.php TEXT.php TFLT.php TIME.php TIT1.php TIT2.php TIT3.php TKEY.php TLAN.php TLEN.php TMED.php TOAL.php
TOFN.php TOLY.php TOPE.php TORY.php TOWN.php TPE1.php TPE2.php TPE3.php TPE4.php TPOS.php TPUB.php TRCK.php TRDA.php TRSN.php TRSO.php TSIZ.php
TSRC.php TSSE.php TXXX.php TYER.php UFID.php USER.php USLT.php WCOM.php WCOP.php WOAF.php WOAR.php WOAS.php WORS.php WPAY.php WPUB.php WXXX.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42488@lists.php.net to get a copy of this message
alexmerz Wed Oct 11 07:25:39 2006 UTC Modified files: /pear/MP3_IDv2/IDv2/Frame APIC.php CommonLink.php CommonText.php IPLS.php MCDI.php PCNT.php POPM.php PRIV.php RBUF.php TALB.php TBPM.php TCOM.php TCON.php TCOP.php TDAT.php TDLY.php TENC.php TEXT.php TFLT.php TIME.php TIT1.php TIT2.php TIT3.php TKEY.php TLAN.php TLEN.php TMED.php TOAL.php TOFN.php TOLY.php TOPE.php TORY.php TOWN.php TPE1.php TPE2.php TPE3.php TPE4.php TPOS.php TPUB.php TRCK.php TRDA.php TRSN.php TRSO.php TSIZ.php TSRC.php TSSE.php TXXX.php TYER.php UFID.php USER.php USLT.php WCOM.php WCOP.php WOAF.php WOAR.php WOAS.php WORS.php WPAY.php WPUB.php WXXX.php Log: switch to LGPL and PHP5 compliance

http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/APIC.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/APIC.php diff -u pear/MP3_IDv2/IDv2/Frame/APIC.php:1.1 pear/MP3_IDv2/IDv2/Frame/APIC.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/APIC.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/APIC.php Wed Oct 11 07:25:38 2006 @@ -1,28 +1,36 @@ <?php /** * This file contains the generic implementation for APIC frames - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: APIC.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: APIC.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ - + /** * Load PEAR for error handling - */ + */ require_once 'PEAR.php'; /** @@ -58,47 +66,45 @@ * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_APIC extends MP3_IDv2_Frame { - + /** * the encoding of text. * @var string one byte representing the encoding */ - var $_encoding = "\0"; - + private $_encoding = "\0"; + /** * the MIME type of the image * @var string */ - var $_mime = "\n"; - + private $_mime = "\n"; + /** * the type of the image */ - var $_pictype = 0; + private $_pictype = 0; /** * description of the image * @var string */ - var $_descr = "\n"; - + private $_descr = "\n"; + /** * picture data * @var string */ - var $_picdata = null; + private $_picdata = null; /** * the list of picture types and there description */ - var $_ptlist = array( + private $_ptlist = array( "Other", "PNG-File icon", "Other file icon", @@ -121,24 +127,24 @@ "Band/artist logotype", "Publisher/Studio logotype" ); - + /** * Sets the encoding for the text for the frame. * @param string $enc the byte containing the encoding identifier * @access public - */ - function setEncoding($enc) { + */ + public function setEncoding($enc) { $this->_changed = true; $this->_encoding = $enc; } - + /** * Returns the encoding identifier for the text in the frame. * @return string the identifier * @access public - */ - function getEncoding() { + */ + public function getEncoding() { return $this->_encoding; } @@ -146,22 +152,22 @@ * Sets the mime type of the picture * @param string $mime the mime type * @access public - */ - function setMimeType($mime) { + */ + public function setMimeType($mime) { $this->_changed = true; if(substr($mime, -1) == "\n") { $mime = substr($mime, 0, -1); - } + } $this->_mime = $mime; } - + /** * Returns the mime type of the picture - * @param bool $nul if true, deliever with ending null + * @param bool $nul if true, deliever with ending null * @return string the mime type * @access public - */ - function getMimeType($nul=false) { + */ + public function getMimeType($nul=false) { $ret = $this->_mime; if($nul) { if("\0" != substr($ret, -1)) { @@ -170,60 +176,60 @@ } return $ret; } - + /** * Sets the picture type. * @param string $type the picture type * @access public - */ - function setType($type) { + */ + public function setType($type) { $this->_changed = true; $this->_pictype = $type; } - + /** * Returns the picture type. * @return string the picture type * @access public - */ - function getType() { + */ + public function getType() { return $this->_pictype; } - + /** * Returns the description of the picture type. * @return string the picture type * @access public - */ - function getTypeDescr() { + */ + public function getTypeDescr() { if($this->_pictype > 0 && $this->_pictype < 22) { return $this->_ptlist[$this->_pictype]; } else { return null; } } - + /** * Sets the description of the picture - * @param string $descr the description + * @param string $descr the description * @access public - */ - function setDescription($descr) { + */ + public function setDescription($descr) { $this->_changed = true; if(substr($descr, -1) == "\n") { $descr = substr($descr, 0, -1); - } + } $this->_descr = $descr; } - + /** * Returns the description of the picture - * - * @param bool $nul if true, deliever with ending null + * + * @param bool $nul if true, deliever with ending null * @return string the description * @access public - */ - function getDescription($nul = false) { + */ + public function getDescription($nul = false) { $ret = $this->_descr; if ($nul) { if ("\0" != substr($ret, -1)) { @@ -232,59 +238,59 @@ } return $ret; } - + /** * Sets the picture binary data * @param string $data * @access public - */ - function setPicture($data) { + */ + public function setPicture($data) { $this->_changed = true; if(substr($data, -1) != "\n") { $data = $data."\n"; } $this->_picdata = $data; } - + /** * Returns the mime type of the picture * @return string the mime type * @access public - */ - function getPicture() { + */ + public function getPicture() { return $this->_picdata; } - - + + /** * Creates the content of the frame (encoding+text) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return pack("c", $this->getEncoding()). $this->getMimeType(true). pack("c", $this->getType()). $this->getDescription(true). $this->getPicture(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; - $c = unpack('C1enc', $content[0]); + $c = unpack('C1enc', $content[0]); $this->setEncoding($c['enc']); $i=1; $mime=''; while($content[$i]!="\0") { $mime = $mime.$content[$i]; $i++; - } + } $this->setMimeType($mime); $i++; @@ -297,9 +303,9 @@ $i++; } $this->setDescription($desc); - $this->setPicture(substr($content, $i+1)); + $this->setPicture(substr($content, $i+1)); } - + /** * writes the picture data to a file * @@ -307,7 +313,7 @@ * @return bool true if file could written * @access public */ - function writeToFile($file) { + public function writeToFile($file) { $h=fopen($file,"wb"); if($h) { fwrite($h,$this->getPicture()); @@ -325,36 +331,36 @@ * @param string $file the file name * @access public */ - function readFromFile($file) { + public function readFromFile($file) { if (file_exists($file)) { $this->_picdata = file_get_contents($file); } else { return PEAR::raiseError( sprintf(PEAR_MP3_IDV2_IMAGENOTFOUND_S, $filename), - PEAR_MP3_IDV2_FILENOTFOUND); + PEAR_MP3_IDV2_FILENOTFOUND); } return true; - } - + } + /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_APIC() { + public function __construct() { $this->setId("APIC"); $this->setPurpose("Attached Picture"); - } + } /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". $this->getMimeType()." ".$this->getTypeDescr()." ". $this->getDescription(); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/CommonLink.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/CommonLink.php diff -u pear/MP3_IDv2/IDv2/Frame/CommonLink.php:1.1 pear/MP3_IDv2/IDv2/Frame/CommonLink.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/CommonLink.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/CommonLink.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the generic implementation for link frames * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CommonLink.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: CommonLink.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -33,8 +41,6 @@ * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 @@ -44,23 +50,23 @@ /** * the url */ - var $_url=null; + private $_url=null; /** - * Creates the content of the frame - * @return string the frame content + * Creates the content of the frame + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return $this->getUrl(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { + public function setRawContent($content) { $this->_changed = true; $this->_content = $content; $this->setUrl($content); @@ -71,7 +77,7 @@ * * @param string $url the url */ - function setUrl($url) { + public function setUrl($url) { $this->_changed = true; $this->_url = $url; } @@ -81,17 +87,17 @@ * * @param string the url */ - function getUrl() { + public function getUrl() { return $this->_url; - } - + } + /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". $this->getUrl(); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/CommonText.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/CommonText.php diff -u pear/MP3_IDv2/IDv2/Frame/CommonText.php:1.1 pear/MP3_IDv2/IDv2/Frame/CommonText.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/CommonText.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/CommonText.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the generic implementation for text frames - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CommonText.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: CommonText.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -28,47 +36,45 @@ /** * Data stucture for text frames in a tag. * These frames starts with a T in the frame id. - * + * * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_CommonText extends MP3_IDv2_Frame { - + /** * Contains the encoding of the text. * @var string one byte representing the encoding */ - var $_encoding = "\0"; - + private $_encoding = "\0"; + /** * Contains the text in the frame * @var string one byte representing the encoding - */ - var $_text = null; - + */ + private $_text = null; + /** * Sets the text for the frame. * @param string $text the text to set * @access public - */ - function setText($text) { + */ + public function setText($text) { $this->_changed = true; $this->_text = $text; - } - + } + /** * Returns the text in the frame. * @return string the text * @access public */ - function getText() { + public function getText() { return $this->_text; } @@ -76,52 +82,52 @@ * Sets the encoding for the text for the frame. * @param string $enc the byte containing the encoding identifier * @access public - */ - function setEncoding($enc) { + */ + public function setEncoding($enc) { $this->_changed = true; $this->_encoding = $enc; } - + /** * Returns the encoding identifier for the text in the frame. * @return string the identifier * @access public - */ - function getEncoding() { + */ + public function getEncoding() { return $this->_encoding; } - + /** * Creates the content of the frame (encoding+text) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return pack("c", $this->getEncoding()).$this->getText(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; $c = unpack('C1enc', $content[0]); - $this->setEncoding($c['enc']); + $this->setEncoding($c['enc']); $this->setText(substr($content, 1)); } - + /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". - $this->getText(); - } + $this->getText(); + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/IPLS.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/IPLS.php diff -u pear/MP3_IDv2/IDv2/Frame/IPLS.php:1.1 pear/MP3_IDv2/IDv2/Frame/IPLS.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/IPLS.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/IPLS.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for the ILPS frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: IPLS.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: IPLS.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,39 +34,37 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for IPLS frame in a tag + * Data stucture for IPLS frame in a tag * (Involved people list) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_IPLS extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_IPLS() { + public function __construct() { $this->setId("IPLS"); $this->setPurpose("Involved people list"); - } - - /** + } + + /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". - $this->getText(); + $this->getText(); } - + } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/MCDI.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/MCDI.php diff -u pear/MP3_IDv2/IDv2/Frame/MCDI.php:1.1 pear/MP3_IDv2/IDv2/Frame/MCDI.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/MCDI.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/MCDI.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the generic implementation for MCDI frames - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: MCDI.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: MCDI.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -28,7 +36,7 @@ /** * Data stucture for MCDI frames in a tag. * (Music CD identifier) - * + * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> @@ -37,67 +45,67 @@ * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_MCDI extends MP3_IDv2_Frame { - + /** * Sets the identifier data for the frame. * @param string $data the data to set * @access public - */ - function setMCDI($data) { + */ + public function setMCDI($data) { $this->_changed = true; $this->_content = $data; - } - + } + /** * Returns the identifier in the frame. * @return string the identifier * @access public */ - function getMCDI() { + public function getMCDI() { return $this->_content; } - + /** * Creates the content of the frame (encoding+text) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return $this->getMCDI(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; - $this->_content = $content; + public function setRawContent($content) { + $this->_changed = true; + $this->_content = $content; $this->setMCDI($content, 1); } - + /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". - $this->getMCDI(); - } - + $this->getMCDI(); + } + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_MCDI() { + public function __construct() { $this->_id = "MCDI"; $this->_purpose = "Music CD Identifier"; } - + } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/PCNT.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/PCNT.php diff -u pear/MP3_IDv2/IDv2/Frame/PCNT.php:1.1 pear/MP3_IDv2/IDv2/Frame/PCNT.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/PCNT.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/PCNT.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for PCNT frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: PCNT.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: PCNT.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -28,7 +36,7 @@ /** * Data stucture for PCNT frame in a tag. * (Play counter) - * + * * The implementation is an optimistic one, * it expects, that the counter doesn't become * larger then 32 bit. @@ -36,78 +44,76 @@ * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_PCNT extends MP3_IDv2_Frame { - + /** * the counter - * @var int - */ - var $_counter = 0; - + * @var int + */ + private $_counter = 0; + /** * Sets the counter. * @param int $c counter value * @access public - */ - function setCounter($c) { + */ + public function setCounter($c) { $this->_changed = true; $this->_counter = $c; - } - + } + /** * Returns the counter. * @return int the counter value * @access public */ - function getCounter() { + public function getCounter() { return $this->_counter; } /** * Creates the content of the frame (encoding+language+tou) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return pack("N", $this->getCounter()); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; - $this->_content = $content; + public function setRawContent($content) { + $this->_changed = true; + $this->_content = $content; $this->setCounter(substr($content, -4, 4)); } - + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_PCNT() { + public function __construct() { $this->_id = "PCNT"; $this->_purpose = "Play counter"; } /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". - $this->getCounter(); - } + $this->getCounter(); + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/POPM.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/POPM.php diff -u pear/MP3_IDv2/IDv2/Frame/POPM.php:1.1 pear/MP3_IDv2/IDv2/Frame/POPM.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/POPM.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/POPM.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for POPM frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: POPM.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: POPM.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -28,7 +36,7 @@ /** * Data stucture for POPM frame in a tag. * (Popularimeter) - * + * * The implementation is an optimistic one, * it expects, that the counter doesn't become * larger then 32 bit. @@ -36,49 +44,47 @@ * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_POPM extends MP3_IDv2_Frame { /** * the rating - * @var int - */ - var $_rating = 0; - + * @var int + */ + public $_rating = 0; + /** * email address - * @var string - */ - var $_email = "\0"; + * @var string + */ + private $_email = "\0"; /** * the counter - * @var int - */ - var $_counter = ""; - + * @var int + */ + private $_counter = ""; + /** * Sets the counter. * @param int $c counter value * @access public - */ - function setCounter($c) { + */ + public function setCounter($c) { $this->_changed = true; $this->_counter = $c; - } - + } + /** * Returns the counter. * @return int the counter value * @access public */ - function getCounter() { + public function getCounter() { return $this->_counter; } @@ -87,23 +93,23 @@ * Must between 0 (worst) and 255 (best). * @param int $c rating value * @access public - */ - function setRating($c) { + */ + public function setRating($c) { $this->_changed = true; if ($c < 0) { $c = 0; } else if ($c > 255) { $c = 255; - } + } $this->_rating = $c; - } - + } + /** * Returns the rating. * @return int the rating value * @access public */ - function getRating() { + public function getRating() { return $this->_rating; } @@ -111,23 +117,23 @@ * Sets the email address. * @param string $email the email adsress * @access public - */ - function setEmail($email) { + */ + public function setEmail($email) { $this->_changed = true; if ("\0" == substr($email, -1)) { $email = substr($email, 0 , -1); } $this->_email = $email; - } - + } + /** * Returns the email address. - * + * * @param bool $nul if true appends a null * @return string the email address * @access public */ - function getEmail($nul = false) { + public function getEmail($nul = false) { $ret = $this->_email; if ($nul) { if ("\0" != substr($ret, -1)) { @@ -140,51 +146,51 @@ /** * Creates the content of the frame (encoding+language+tou) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return $this->getEmail(true). - pack("C", $this->getRating()). + pack("C", $this->getRating()). pack("N", $this->getCounter()); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; - $c = explode("\0", $content); + $c = explode("\0", $content); $this->setEmail($c[0]); $this->setRating(substr($c[1], 0, 1)); - if (5 <= strlen($c[1])) { + if (5 <= strlen($c[1])) { $this->setCounter(substr($c[1], 1)); } } - + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_POPM() { + function __construct() { $this->_id = "POPM"; $this->_purpose = "Popularimeter"; } /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". $this->getEmail()." ".$this->getRating()." ". - $this->getCounter(); - } - + $this->getCounter(); + } + } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/PRIV.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/PRIV.php diff -u pear/MP3_IDv2/IDv2/Frame/PRIV.php:1.1 pear/MP3_IDv2/IDv2/Frame/PRIV.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/PRIV.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/PRIV.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for PRIV frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: PRIV.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: PRIV.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -28,52 +36,50 @@ /** * Data stucture for PRIV frame in a tag. * (Private) - * + * * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_PRIV extends MP3_IDv2_Frame { - + /** * the owner identifier * @var string owner identifier */ - var $_owner = "\0"; - + private $_owner = "\0"; + /** * the private data - * @var string - */ - var $_private = ""; - + * @var string + */ + private $_private = ""; + /** * Sets the owner identifier. * @param string $oid the owner identifer * @access public - */ - function setOwnerId($oid) { + */ + public function setOwnerId($oid) { $this->_changed = true; if ("\0" == substr($oid, -1)) { $oid = substr($oid, 0, -1); } $this->_owner = $oid; - } - + } + /** * Returns the owner identifier - * + * * @param bool $nul if true, null is appended * @return string the owner identifier * @access public */ - function getOwnerId($b = false) { + public function getOwnerId($b = false) { $ret = $this->_owner; if ($b) { if ("\0" != substr($ret, -1)) { @@ -81,66 +87,66 @@ } } return $ret; - } + } /** * Sets the private data * @param string $pd private data * @access public - */ - function setPrivateData($pd) { + */ + public function setPrivateData($pd) { $this->_changed = true; $this->_private = $pd; } - + /** - * Returns the private data + * Returns the private data * @return string private data * @access public - */ - function getPrivateData() { + */ + public function getPrivateData() { return $this->_private; } /** * Creates the content of the frame (encoding+language+tou) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return $this->getOwnerId(). $this->getPrivateData(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; $p = strpos($content, "\0"); $this->setOwnerId(substr($content, 0, $p)); $this->setPrivateData(substr($content, $p+1)); } - + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_PRIV() { + public function __construct() { $this->_id = "PRIV"; $this->_purpose = "Private"; } - + /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". $this->getOwnerId(); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/RBUF.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/RBUF.php diff -u pear/MP3_IDv2/IDv2/Frame/RBUF.php:1.1 pear/MP3_IDv2/IDv2/Frame/RBUF.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/RBUF.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/RBUF.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for RBUF frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: RBUF.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: RBUF.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -28,7 +36,7 @@ /** * Data stucture for RBUF frame in a tag. * (Recommended buffer size) - * + * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> @@ -37,64 +45,64 @@ * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_RBUF extends MP3_IDv2_Frame { /** * the buffer size - * @var int - */ - var $buffer = 0; - + * @var int + */ + private $buffer = 0; + /** * embedded flag - * @var bool - */ - var $_emb = false; + * @var bool + */ + private $_emb = false; /** * the offset to next flag - * @var int - */ - var $_next = 0; - + * @var int + */ + private $_next = 0; + /** * Sets the buffer size. * @param int $c buffer size * @access public - */ - function setBufferSize($c) { + */ + public function setBufferSize($c) { $this->_changed = true; $this->_buffer = $c; - } - + } + /** * Returns the buffer size. * @return int the buffer size * @access public */ - function getBufferSize() { + public function getBufferSize() { return $this->_buffer; } /** * Sets the embedded flag. - * + * * @param bool $b embedded flag * @access public - */ - function useEmbedding($b = true) { + */ + public function useEmbedding($b = true) { $this->_changed = true; $this->_emb = $b; - } - + } + /** * Returns the embedded flag * @return bool true if flag is set * @access public */ - function isEmbedded() { + public function isEmbedded() { return $this->_emb; } @@ -102,46 +110,46 @@ * Sets the offset to the next tag containing this frame * @param int $offset the offset * @access public - */ - function setOffsetToNextTag($offset) { + */ + public function setOffsetToNextTag($offset) { $this->_changed = true; $this->_offset = $offset; - } - + } + /** * Returns the offset to the next tag containing this frame * @return string the email address * @access public */ - function getOffsetToNextTag() { + public function getOffsetToNextTag() { return $this->_offset; } /** * Creates the content of the frame (encoding+language+tou) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { $size = str_pad(decbin($this->getBufferSize()), 32,"0", STR_PAD_LEFT); $size = substr($size, 3); $flag = bindec("00000000"); if ($this->isEmbedded()) { $flag = bindec("00000001"); - } + } return $size. - pack("C", decbin($flag)); + pack("C", decbin($flag)); pack("N", $this->getOffsetToNextTag()); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; $s = substr($content, 0,3); $sa = ''; @@ -158,27 +166,27 @@ for ($i=3; $i>=0; $i--) { $na = $na.decbin($n[$i]); } - $this->setOffsetToNextTag(bindec($na)); + $this->setOffsetToNextTag(bindec($na)); } - + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_RBUF() { + public function __construct() { $this->_id = "RBUF"; $this->_purpose = "Recommended buffer size"; } /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". - $this->getBufferSize()." ".$this->getOffsetToNextTag(); - } + $this->getBufferSize()." ".$this->getOffsetToNextTag(); + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TALB.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TALB.php diff -u pear/MP3_IDv2/IDv2/Frame/TALB.php:1.1 pear/MP3_IDv2/IDv2/Frame/TALB.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TALB.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TALB.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TALB frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TALB.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TALB.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TALB frame in a tag + * Data stucture for TALB frame in a tag * (Album/Movie/Show title) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TALB extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TALB() { + public function __construct() { $this->setId("TALB"); $this->setPurpose("Album/Movie/Show title"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TBPM.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TBPM.php diff -u pear/MP3_IDv2/IDv2/Frame/TBPM.php:1.1 pear/MP3_IDv2/IDv2/Frame/TBPM.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TBPM.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TBPM.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for the TBPM frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TBPM.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TBPM.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,7 +34,7 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TBPM frame in a tag + * Data stucture for TBPM frame in a tag * (Beats per minute) * * @category File Formats @@ -37,14 +45,14 @@ * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TBPM extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TBPM() { + public function __construct() { $this->setId("TBPM"); $this->setPurpose("Beats per minute"); } @@ -52,20 +60,20 @@ /** * Returns the Beats per minute as Integer * @return int the beats per minute - * @access public + * @access public */ - function getBPM() { + public function getBPM() { return (int)$this->getText(); } /** * Sets the Beats per minute as Integer * @param int $bpm the beats per minute - * @access public + * @access public */ - function setBPM($bpm) { + public function setBPM($bpm) { $this->setText($bpm); - } - + } + } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TCOM.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TCOM.php diff -u pear/MP3_IDv2/IDv2/Frame/TCOM.php:1.1 pear/MP3_IDv2/IDv2/Frame/TCOM.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TCOM.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TCOM.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TCOM frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TCOM.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TCOM.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,44 +34,42 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TCOM frame in a tag + * Data stucture for TCOM frame in a tag * (Composer(s)) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TCOM extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TCOM() { + public function __construct() { $this->setId("TCOM"); $this->setPurpose("Composer(s)"); } - + /** * Returns the composers as list of strings * @return array list of the composers * @access public */ - function getComposers() { + pulbic function getComposers() { return explode('/', $this->getText()); } - + /** * Adds a composer to the composers * @param string $comp a composer - * @access public + * @access public */ - function addComposer($comp) { + public function addComposer($comp) { $t = $this->getText(); if ("" == $t) { $t = $comp; http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TCON.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TCON.php diff -u pear/MP3_IDv2/IDv2/Frame/TCON.php:1.1 pear/MP3_IDv2/IDv2/Frame/TCON.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TCON.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TCON.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TCON frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TCON.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TCON.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,37 +34,35 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TCON frames in a tag + * Data stucture for TCON frames in a tag * (Content type) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TCON extends MP3_IDv2_Frame_CommonText { - + /** * the list of genres found in the text * @var array list of genres in the frame */ - var $_genrelist = array(); - + private $_genrelist = array(); + /** * list of genres defintions given by the text * @var array list of custom genre definitions */ - var $_customgenres = array(); - + private $_customgenres = array(); + /** * list of genre definitions given by IDv1 * @var array list of predefined genres */ - var $_genresV1 = array( + private $_genresV1 = array( 0 => 'Blues', 1 => 'Classic Rock', 2 => 'Country', @@ -213,28 +219,28 @@ * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TCON() { + public function __construct() { $this->setId("TCON"); $this->setPurpose("Content type"); } - + /** * Returns the used numbers/identifers. * * @return array list of genres found in the frame * @access public */ - function getGenres() { + public function getGenres() { return $this->_genrelist; } - + /** * Returns the Genre descriptions index by numbers/identifers. * * @return array list of founded genres and there description * @access public */ - function getGenresDescr() { + public function getGenresDescr() { $ret = array(); foreach($this->_genrelist as $g) { // first look if there is custom descr @@ -256,7 +262,7 @@ * @return string the genre description or null if not found * @access public */ - function getGenreDescr($number) { + public function getGenreDescr($number) { if (isset($this->_customgenres[$number])) { return $this->_customgenres[$number]; } else if (isset($this->_genresV1[$number])) { @@ -267,7 +273,7 @@ } - function setRawContent($content) { + public function setRawContent($content) { $this->_changed = true; $this->_content = $content; $c = unpack('C1enc', $content[0]); @@ -318,7 +324,7 @@ * @return string the text * @access public */ - function getText() { + public function getText() { if ($this->_changed == true) { $text = ''; foreach ($this->_genrelist as $k => $v) { @@ -336,7 +342,7 @@ * @param string $genredesrc description of the genre to add * @access public */ - function addGenre($genreno, $genredescr = '') { + public function addGenre($genreno, $genredescr = '') { $this->_changed = true; $this->_genrelist[$genreno] = $genredescr; if ('' != $genredescr) { @@ -350,7 +356,7 @@ * @return string the frame content * @access public */ - function toString() { + public function toString() { $ret = $this->getID()." (".$this->getPurpose().") "; $ge = $this->getGenres(); foreach($ge as $g => $k) { http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TCOP.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TCOP.php diff -u pear/MP3_IDv2/IDv2/Frame/TCOP.php:1.1 pear/MP3_IDv2/IDv2/Frame/TCOP.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TCOP.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TCOP.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for the TCOP frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TCOP.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TCOP.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,36 +34,34 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TCOP frames in a tag + * Data stucture for TCOP frames in a tag * (Copyright message) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TCOP extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TCOP() { + public function __construct() { $this->setId("TCOP"); $this->setPurpose("Copyright message"); } - + /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". "Copyright (c)".$this->getText(); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TDAT.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TDAT.php diff -u pear/MP3_IDv2/IDv2/Frame/TDAT.php:1.1 pear/MP3_IDv2/IDv2/Frame/TDAT.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TDAT.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TDAT.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TDAT frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TDAT.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TDAT.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,7 +34,7 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TDAT frames in a tag + * Data stucture for TDAT frames in a tag * (Date) * This frame isn't part of 2.4. * @@ -38,14 +46,14 @@ * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TDAT extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TDAT() { + public function __construct() { $this->setId("TDAT"); $this->setPurpose("Date"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TDLY.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TDLY.php diff -u pear/MP3_IDv2/IDv2/Frame/TDLY.php:1.1 pear/MP3_IDv2/IDv2/Frame/TDLY.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TDLY.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TDLY.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TDLY frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TDLY.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TDLY.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TDLY frames in a tag + * Data stucture for TDLY frames in a tag * (Playlist delay) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TDLY extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TDLY() { + public function __construct() { $this->setId("TDLY"); $this->setPurpose("Playlist delay"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TENC.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TENC.php diff -u pear/MP3_IDv2/IDv2/Frame/TENC.php:1.1 pear/MP3_IDv2/IDv2/Frame/TENC.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TENC.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TENC.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TENC frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TENC.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TENC.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,7 +34,7 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TENC frames in a tag + * Data stucture for TENC frames in a tag * (Encoded by) * * @category File Formats @@ -37,16 +45,16 @@ * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TENC extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TENC() { + public function __construct() { $this->setId("TENC"); $this->setPurpose("Encoded by"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TEXT.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TEXT.php diff -u pear/MP3_IDv2/IDv2/Frame/TEXT.php:1.1 pear/MP3_IDv2/IDv2/Frame/TEXT.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TEXT.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TEXT.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for the TEXT frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TEXT.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TEXT.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,44 +34,42 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TEXT frames in a tag + * Data stucture for TEXT frames in a tag * (Lyricist(s)/Text writer(s)) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TEXT extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TEXT() { + public function __construct() { $this->setId("TEXT"); $this->setPurpose("Lyricist(s)/Text writer(s)"); - } - + } + /** * Returns the texters as list of strings * @return array list of the texters * @access public */ - function getTexters() { + public function getTexters() { return explode('/', $this->getText()); } - + /** * Adds a texter to the texters * @param string $text a texter - * @access public + * @access public */ - function addTexter($text) { + public function addTexter($text) { $t = $this->getText(); if ("" == $t) { $t = $text; @@ -71,7 +77,7 @@ $t = $t."/".$text; } $this->setText($t); - } - + } + } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TFLT.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TFLT.php diff -u pear/MP3_IDv2/IDv2/Frame/TFLT.php:1.1 pear/MP3_IDv2/IDv2/Frame/TFLT.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TFLT.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TFLT.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TFLT frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TFLT.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TFLT.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,28 +34,26 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TFLT frames in a tag + * Data stucture for TFLT frames in a tag * (File type) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TFLT extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TFLT() { + public function __construct() { $this->setId("TFLT"); $this->setPurpose("File type"); - } - + } + } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TIME.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TIME.php diff -u pear/MP3_IDv2/IDv2/Frame/TIME.php:1.1 pear/MP3_IDv2/IDv2/Frame/TIME.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TIME.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TIME.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TIME frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TIME.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TIME.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,26 +34,24 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TIME frames in a tag + * Data stucture for TIME frames in a tag * (Time) * This frame isn't part of 2.4. * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TIME extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TIME() { + public function __construct() { $this->setId("TIME"); $this->setPurpose("Time"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TIT1.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TIT1.php diff -u pear/MP3_IDv2/IDv2/Frame/TIT1.php:1.1 pear/MP3_IDv2/IDv2/Frame/TIT1.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TIT1.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TIT1.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TIT1 frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TIT1.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TIT1.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TIT1 frames in a tag + * Data stucture for TIT1 frames in a tag * (Content group description) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TIT1 extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TIT1() { + public function __construct() { $this->setId("TIT1"); $this->setPurpose("Content group description"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TIT2.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TIT2.php diff -u pear/MP3_IDv2/IDv2/Frame/TIT2.php:1.1 pear/MP3_IDv2/IDv2/Frame/TIT2.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TIT2.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TIT2.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TIT2 frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TIT2.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TIT2.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for the TIT2 frame in a tag + * Data stucture for the TIT2 frame in a tag * (Title/Songname/Content description) - * + * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TIT2 extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TIT2() { + public function __construct() { $this->setId("TIT2"); $this->setPurpose("Title/Songname/Content description"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TIT3.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TIT3.php diff -u pear/MP3_IDv2/IDv2/Frame/TIT3.php:1.1 pear/MP3_IDv2/IDv2/Frame/TIT3.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TIT3.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TIT3.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TIT3 frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TIT3.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TIT3.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TIT3 frames in a tag + * Data stucture for TIT3 frames in a tag * (Subtitle/Description refinement) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TIT3 extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TIT3() { + public function __construct() { $this->setId("TIT3"); $this->setPurpose("Subtitle/Description refinement"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TKEY.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TKEY.php diff -u pear/MP3_IDv2/IDv2/Frame/TKEY.php:1.1 pear/MP3_IDv2/IDv2/Frame/TKEY.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TKEY.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TKEY.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TKEY frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TKEY.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TKEY.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TKEY frames in a tag + * Data stucture for TKEY frames in a tag * (Initial key) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TKEY extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TKEY() { + public function __construct() { $this->setId("TKEY"); $this->setPurpose("Initial key"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TLAN.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TLAN.php diff -u pear/MP3_IDv2/IDv2/Frame/TLAN.php:1.1 pear/MP3_IDv2/IDv2/Frame/TLAN.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TLAN.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TLAN.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TLAN frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TLAN.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TLAN.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,28 +34,26 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TLAN frames in a tag + * Data stucture for TLAN frames in a tag * (Language(s)) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TLAN extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TLAN() { + public function __construct() { $this->setId("TLAN"); $this->setPurpose("Language(s)"); - } - + } + } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TLEN.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TLEN.php diff -u pear/MP3_IDv2/IDv2/Frame/TLEN.php:1.1 pear/MP3_IDv2/IDv2/Frame/TLEN.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TLEN.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TLEN.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for the TLEN frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TLEN.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TLEN.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TLEN frames in a tag + * Data stucture for TLEN frames in a tag * (Audio length) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TLEN extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TLEN() { + public function __construct() { $this->setId("TLEN"); $this->setPurpose("Audio length"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TMED.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TMED.php diff -u pear/MP3_IDv2/IDv2/Frame/TMED.php:1.1 pear/MP3_IDv2/IDv2/Frame/TMED.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TMED.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TMED.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TMED frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TMED.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TMED.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TMED frames in a tag + * Data stucture for TMED frames in a tag * (Media type) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TMED extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TMED() { + public function __construct() { $this->setId("TMED"); $this->setPurpose("Media type"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TOAL.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TOAL.php diff -u pear/MP3_IDv2/IDv2/Frame/TOAL.php:1.1 pear/MP3_IDv2/IDv2/Frame/TOAL.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TOAL.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TOAL.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TOAL frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TOAL.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TOAL.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TOAL frame in a tag + * Data stucture for TOAL frame in a tag * (Original album/movie/show title) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TOAL extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TOAL() { + public function __construct() { $this->setId("TOAL"); $this->setPurpose("Original album/movie/show title"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TOFN.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TOFN.php diff -u pear/MP3_IDv2/IDv2/Frame/TOFN.php:1.1 pear/MP3_IDv2/IDv2/Frame/TOFN.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TOFN.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TOFN.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TOFN frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TOFN.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TOFN.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TOFN frame in a tag + * Data stucture for TOFN frame in a tag * (Original filename) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TOFN extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TOFN() { + public function __construct() { $this->setId("TOFN"); $this->setPurpose("Original filename"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TOLY.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TOLY.php diff -u pear/MP3_IDv2/IDv2/Frame/TOLY.php:1.1 pear/MP3_IDv2/IDv2/Frame/TOLY.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TOLY.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TOLY.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TOLY frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TOLY.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TOLY.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,35 +34,33 @@ require_once 'MP3/IDv2/Frame/TEXT.php'; /** - * Data stucture for TOLY frame in a tag + * Data stucture for TOLY frame in a tag * (Original lyricist(s)/text writer(s)) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TOLY extends MP3_IDv2_Frame_TEXT { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TOLY() { + public function __cosntruct() { $this->setId("TOLY"); $this->setPurpose("Original lyricist(s)/text writer(s)"); - } - + } + /** * Returns the artists as list of strings * @return array list of the artists * @access public */ - function getArtists() { + public function getArtists() { return explode('/', $this->getText()); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TOPE.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TOPE.php diff -u pear/MP3_IDv2/IDv2/Frame/TOPE.php:1.1 pear/MP3_IDv2/IDv2/Frame/TOPE.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TOPE.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TOPE.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TOPE frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TOPE.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TOPE.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/TPE1.php'; /** - * Data stucture for TOPE frame in a tag + * Data stucture for TOPE frame in a tag * (Original artist(s)/performer(s)) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TOPE extends MP3_IDv2_Frame_TPE1 { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TOPE() { + public function __construct() { $this->setId("TOPE"); $this->setPurpose("Original artist(s)/performer(s)"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TORY.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TORY.php diff -u pear/MP3_IDv2/IDv2/Frame/TORY.php:1.1 pear/MP3_IDv2/IDv2/Frame/TORY.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TORY.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TORY.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TORY frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TORY.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TORY.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TORY frame in a tag + * Data stucture for TORY frame in a tag * (Original release year) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TORY extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TORY() { + public function __construct() { $this->setId("TORY"); $this->setPurpose("Original release year"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TOWN.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TOWN.php diff -u pear/MP3_IDv2/IDv2/Frame/TOWN.php:1.1 pear/MP3_IDv2/IDv2/Frame/TOWN.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TOWN.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TOWN.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TOWN frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TOWN.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TOWN.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TOWN frame in a tag + * Data stucture for TOWN frame in a tag * (File owner/licensee) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TOWN extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TOWN() { + public function __construct() { $this->setId("TOWN"); $this->setPurpose("File owner/licensee"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TPE1.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TPE1.php diff -u pear/MP3_IDv2/IDv2/Frame/TPE1.php:1.1 pear/MP3_IDv2/IDv2/Frame/TPE1.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TPE1.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TPE1.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TPE1 frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TPE1.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TPE1.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -32,19 +40,17 @@ * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TPE1 extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TPE1() { + public function __construct() { $this->setId("TPE1"); $this->setPurpose("Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group"); } @@ -54,16 +60,16 @@ * @return array list of the artists * @access public */ - function getArtists() { + public function getArtists() { return explode('/', $this->getText()); } - + /** * Adds an artist to the artists * @param string $artist an artist - * @access public + * @access public */ - function addArtist($artist) { + public function addArtist($artist) { $t = $this->getText(); if ("" == $t) { $t = $artist; @@ -71,7 +77,7 @@ $t = $t."/".$artist; } $this->setText($t); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TPE2.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TPE2.php diff -u pear/MP3_IDv2/IDv2/Frame/TPE2.php:1.1 pear/MP3_IDv2/IDv2/Frame/TPE2.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TPE2.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TPE2.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TPE2 frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TPE2.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TPE2.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TPE2 frames in a tag + * Data stucture for TPE2 frames in a tag * (Band/Orchestra/Accompaniment) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TPE2 extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TPE2() { + public function __construct() { $this->setId("TPE2"); $this->setPurpose("Band/Orchestra/Accompaniment"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TPE3.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TPE3.php diff -u pear/MP3_IDv2/IDv2/Frame/TPE3.php:1.1 pear/MP3_IDv2/IDv2/Frame/TPE3.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TPE3.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TPE3.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TPE3 frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TPE3.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TPE3.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TPE3 frame in a tag + * Data stucture for TPE3 frame in a tag * (Conductor) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TPE3 extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TPE3() { + public function __construct() { $this->setId("TPE3"); $this->setPurpose("Conductor"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TPE4.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TPE4.php diff -u pear/MP3_IDv2/IDv2/Frame/TPE4.php:1.1 pear/MP3_IDv2/IDv2/Frame/TPE4.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TPE4.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TPE4.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TPE4 frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TPE4.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TPE4.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TPE4 frame in a tag + * Data stucture for TPE4 frame in a tag * (Interpreted, remixed, or otherwise modified by) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TPE4 extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TPE4() { + public function __construct() { $this->setId("TPE4"); $this->setPurpose("Interpreted, remixed, or otherwise modified by"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TPOS.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TPOS.php diff -u pear/MP3_IDv2/IDv2/Frame/TPOS.php:1.1 pear/MP3_IDv2/IDv2/Frame/TPOS.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TPOS.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TPOS.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for the TPOS frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TPOS.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TPOS.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TPOS frame in a tag + * Data stucture for TPOS frame in a tag * (Part of a set) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TPOS extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TPOS() { + public function __construct() { $this->setId("TPOS"); $this->setPurpose("Part of a set"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TPUB.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TPUB.php diff -u pear/MP3_IDv2/IDv2/Frame/TPUB.php:1.1 pear/MP3_IDv2/IDv2/Frame/TPUB.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TPUB.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TPUB.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TPUB frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TPUB.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TPUB.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TPUB frame in a tag + * Data stucture for TPUB frame in a tag * (Publisher) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TPUB extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TPUB() { + public function __construct() { $this->setId("TPUB"); $this->setPurpose("Publisher"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TRCK.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TRCK.php diff -u pear/MP3_IDv2/IDv2/Frame/TRCK.php:1.1 pear/MP3_IDv2/IDv2/Frame/TRCK.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TRCK.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TRCK.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TRCK frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TRCK.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TRCK.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TRCK frame in a tag + * Data stucture for TRCK frame in a tag * (Track number/Position in set) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TRCK extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TRCK() { + public function __construct() { $this->setId("TRCK"); $this->setPurpose("Track number/Position in set"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TRDA.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TRDA.php diff -u pear/MP3_IDv2/IDv2/Frame/TRDA.php:1.1 pear/MP3_IDv2/IDv2/Frame/TRDA.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TRDA.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TRDA.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TRDA frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TRDA.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TRDA.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TRDA frame in a tag + * Data stucture for TRDA frame in a tag * (Recording dates) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TRDA extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TRDA() { + public function __construct() { $this->setId("TRDA"); $this->setPurpose("Recording dates"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TRSN.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TRSN.php diff -u pear/MP3_IDv2/IDv2/Frame/TRSN.php:1.1 pear/MP3_IDv2/IDv2/Frame/TRSN.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TRSN.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TRSN.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TRSN frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TRSN.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TRSN.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TRSN frame in a tag + * Data stucture for TRSN frame in a tag * (Internet radio station name) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TRSN extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TRSN() { + public function __construct() { $this->setId("TRSN"); $this->setPurpose("Internet radio station name"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TRSO.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TRSO.php diff -u pear/MP3_IDv2/IDv2/Frame/TRSO.php:1.1 pear/MP3_IDv2/IDv2/Frame/TRSO.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TRSO.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TRSO.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TRSO frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TRSO.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TRSO.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TRSO frame in a tag + * Data stucture for TRSO frame in a tag * (Internet radio station owner) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TRSO extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TRSO() { + public function __construct() { $this->setId("TRSO"); $this->setPurpose("Internet radio station owner"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TSIZ.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TSIZ.php diff -u pear/MP3_IDv2/IDv2/Frame/TSIZ.php:1.1 pear/MP3_IDv2/IDv2/Frame/TSIZ.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TSIZ.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TSIZ.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TSIZ frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TSIZ.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TSIZ.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TSIZ frame in a tag + * Data stucture for TSIZ frame in a tag * (Size of the audiodata) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TSIZ extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TSIZ() { + public function __construct() { $this->setId("TSIZ"); $this->setPurpose("Size of the audiodata"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TSRC.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TSRC.php diff -u pear/MP3_IDv2/IDv2/Frame/TSRC.php:1.1 pear/MP3_IDv2/IDv2/Frame/TSRC.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TSRC.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TSRC.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TSRC frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TSRC.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TSRC.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TSRC frame in a tag + * Data stucture for TSRC frame in a tag * (ISRC data) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TSRC extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TSRC() { + public function __construct() { $this->setId("TSRC"); $this->setPurpose("ISRC data"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TSSE.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TSSE.php diff -u pear/MP3_IDv2/IDv2/Frame/TSSE.php:1.1 pear/MP3_IDv2/IDv2/Frame/TSSE.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TSSE.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TSSE.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TSSE frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TSSE.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TSSE.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TSSE frame in a tag + * Data stucture for TSSE frame in a tag * (Software/Hardware and settings used for encoding) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TSSE extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TSSE() { + public function __construct() { $this->setId("TSSE"); $this->setPurpose("Software/Hardware and settings used for encoding"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TXXX.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TXXX.php diff -u pear/MP3_IDv2/IDv2/Frame/TXXX.php:1.1 pear/MP3_IDv2/IDv2/Frame/TXXX.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TXXX.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TXXX.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TXXX frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TXXX.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TXXX.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,18 +34,16 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TXXX frame in a tag + * Data stucture for TXXX frame in a tag * (User-defined text frame) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TXXX extends MP3_IDv2_Frame_CommonText { /** @@ -45,7 +51,7 @@ * @var string */ var $_descr=""; - + /** * the content of the frame * @var string @@ -53,14 +59,14 @@ var $_value=""; /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TXXX() { + public function __construct() { $this->setId("TXXX"); $this->setPurpose("User-defined Text"); - } - + } + /** * Returns the frame description. * http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/TYER.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/TYER.php diff -u pear/MP3_IDv2/IDv2/Frame/TYER.php:1.1 pear/MP3_IDv2/IDv2/Frame/TYER.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/TYER.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/TYER.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the TYER frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TYER.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: TYER.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonText.php'; /** - * Data stucture for TYER frame in a tag + * Data stucture for TYER frame in a tag * (Year of recording) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_TYER extends MP3_IDv2_Frame_CommonText { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_TYER() { + public function __construct() { $this->setId("TYER"); $this->setPurpose("Year of recording"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/UFID.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/UFID.php diff -u pear/MP3_IDv2/IDv2/Frame/UFID.php:1.1 pear/MP3_IDv2/IDv2/Frame/UFID.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/UFID.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/UFID.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for UFID frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: UFID.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: UFID.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -28,13 +36,11 @@ /** * Data stucture for UFID frame in a tag. * (Unique file identifier) - * + * * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 @@ -45,35 +51,35 @@ * the owner identifier * @var string owner identifier */ - var $_owner = "\0"; - + private $_owner = "\0"; + /** * file identifier * @var string file identifier - */ - var $_fileidentifier = null; - + */ + private $_fileidentifier = null; + /** * Sets the owner identifier * @param string $oid the owner identifier * @access public - */ - function setOwnerIdentifier($oid) { + */ + public setOwnerIdentifier($oid) { $this->_changed = true; if ( "\n" == substr($oid, -1)) { $oid = substr($oid, 0, -1); } $this->_owner = $oid; - } - + } + /** * Returns the text in the frame. - * + * * @param bool $nul if true then add a null * @return string the text * @access public */ - function getOwnerIdentifier($nul = false) { + public function getOwnerIdentifier($nul = false) { $ret = $this->_owner; if ($nul) { if ("\0" != substr($ret, -1)) { @@ -87,63 +93,63 @@ * Sets the unique file identifier * @param string $fid the unique file identifier * @access public - */ - function setFileIdentifier($fid) { + */ + public function setFileIdentifier($fid) { $this->_changed = true; if (64 < strlen($fid)) { $fid = substr($fid, 0, 63); } $this->_fileidentifier = $fid; } - + /** * Returns the unique file identifier * @return string the identifier * @access public - */ - function getFileIdentifier() { + */ + public function getFileIdentifier() { return $this->_fileidentifier; } - + /** * Creates the content of the frame (owner-id + file-id) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return $this->getOwnerIdentifier(true).$this->getFileIdentifier(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; $p = strpos($content, "\0"); - - $this->setOwnerIdentifier(substr($content, 0, $p)); + + $this->setOwnerIdentifier(substr($content, 0, $p)); $this->setFileIdentifier(substr($content, $p+1)); } - + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_UFID() { + public function __construct() { $this->_id = "UFID"; $this->_purpose = "Unique file identifier"; } - + /** * Returns the frame content as something printable - * - * @return string the frame content + * + * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". $this->getOwnerIdentifier()." ".$this->getFileIdentifier(); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/USER.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/USER.php diff -u pear/MP3_IDv2/IDv2/Frame/USER.php:1.1 pear/MP3_IDv2/IDv2/Frame/USER.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/USER.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/USER.php Wed Oct 11 07:25:38 2006 @@ -15,7 +15,7 @@ * @author Alexander Merz <alexander.merz@web.de> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: USER.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @version CVS: $Id: USER.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -33,8 +33,6 @@ * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 @@ -45,36 +43,36 @@ * the text encoding * @var string text encoding identifier */ - var $_encoding = "\0"; - + private $_encoding = "\0"; + /** * language * @var string ISO-3 language code - */ - var $_language = " "; - + */ + private $_language = " "; + /** * terms of use of the frame text * @var string - */ - var $_terms = "\0"; - + */ + private $_terms = "\0"; + /** * Sets the encoding identifier * @param string $enc the encoding identifier * @access public - */ - function setEncoding($enc) { + */ + public function setEncoding($enc) { $this->_changed = true; $this->_encoding = $enc; - } - + } + /** * Returns the encoding for the text and description * @return string the encoding identifier * @access public */ - function getEncoding() { + public function getEncoding() { return $this->_encoding; } @@ -82,21 +80,21 @@ * Sets the language of the description a/o lyrics * @param string $lang the ISO-3 language code * @access public - */ - function setLanguage($lang) { + */ + public function setLanguage($lang) { $this->_changed = true; if (3 < strlen($lang)) { $lang = substr($lang, 0, 2); } $this->_language = $lang; } - + /** - * Returns the language oft the description/lyrics + * Returns the language oft the description/lyrics * @return string ISO-3 language code * @access public - */ - function getLanguage() { + */ + public function getLanguage() { return $this->_language; } @@ -104,62 +102,62 @@ * Sets the terms of use. * @param string $tou the terms of use * @access public - */ - function setTermsOfUse($tou) { + */ + public function setTermsOfUse($tou) { $this->_changed = true; $this->_terms = $tou; } - + /** * Returns the terms of use. * @return string the description * @access public - */ - function getTermsOfUse() { + */ + public function getTermsOfUse() { return $this->_terms; } - + /** * Creates the content of the frame (encoding+language+tou) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return pack("c",$this->getEncoding()). $this->getLanguage(). $this->getTermsOfUse(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; $e = unpack("C1enc", $content[0]); $this->setEncoding($e['enc']); $this->setLanguage(substr($content, 1, 3)); $this->setTermsOfUse(substr($content, 3)); } - + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_USER() { + public function __construct() { $this->_id = "USER"; $this->_purpose = "Terms of Use"; } - + /** * Returns the frame content as something printable * * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". $this->getLanguage()." ".$this->getTermsOfUse(); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/USLT.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/USLT.php diff -u pear/MP3_IDv2/IDv2/Frame/USLT.php:1.1 pear/MP3_IDv2/IDv2/Frame/USLT.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/USLT.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/USLT.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for USLT frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. * - * @category File Formats + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: USLT.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: USLT.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -33,54 +41,52 @@ * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_USLT extends MP3_IDv2_Frame { - + /** * the text encoding * @var string text encoding identifier */ - var $_encoding = "\0"; - + private $_encoding = "\0"; + /** * language * @var string ISO-3 language code - */ - var $_language = " "; - + */ + private $_language = " "; + /** * description of the frame text * @var string - */ - var $_descr = "\0"; - + */ + private $_descr = "\0"; + /** * lyrics * @var string the lyrics/text */ - var $_lyrics = ""; - + private $_lyrics = ""; + /** * Sets the encoding identifier * @param string $enc the encoding identifier * @access public - */ - function setEncoding($enc) { + */ + public function setEncoding($enc) { $this->_changed = true; $this->_encoding = $enc; - } - + } + /** * Returns the encoding for the text and description * @return string the encoding identifier * @access public */ - function getEncoding() { + public function getEncoding() { return $this->_encoding; } @@ -88,21 +94,21 @@ * Sets the language of the description a/o lyrics * @param string $lang the ISO-3 language code * @access public - */ - function setLanguage($lang) { + */ + public function setLanguage($lang) { $this->_changed = true; if (3 < strlen($lang)) { $lang = substr($lang, 0, 2); } $this->_language = $lang; } - + /** - * Returns the language oft the description/lyrics + * Returns the language oft the description/lyrics * @return string ISO-3 language code * @access public - */ - function getLanguage() { + */ + public function getLanguage() { return $this->_language; } @@ -110,20 +116,20 @@ * Sets the description. * @param string $descr the description * @access public - */ - function setDescription($descr) { + */ + public function setDescription($descr) { $this->_changed = true; $this->_description = $descr; } - + /** * Returns the description. - * + * * @param bool $nul if true, a null is appended * @return string the description * @access public - */ - function getDescription($nul = false) { + */ + public function getDescription($nul = false) { $ret = $this->_description; if ($nul) { if ("\0" == substr($ret, -1)) { @@ -132,71 +138,71 @@ } return $ret; } - + /** * Sets the lyrics. * @param string $lyrics the lyrics/text * @access public - */ - function setLyrics($lyrics) { + */ + public function setLyrics($lyrics) { $this->_changed = true; $this->_lyrics = $lyrics; } - + /** * Returns the lyrics/text. * @return string the description * @access public - */ - function getLyrics() { + */ + public function getLyrics() { return $this->_lyrics; - } - + } + /** * Creates the content of the frame (encoding+language+description+lyrics) - * @return string the frame content + * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return pack("c",$this->getEncoding()). $this->getLanguage(). $this->getDescription(true). $this->getLyrics(); } - + /** * Sets the data of the frame and processes it. * @param string content the unproccess content for the frame - * @access public + * @access public */ - function setRawContent($content) { - $this->_changed = true; + public function setRawContent($content) { + $this->_changed = true; $this->_content = $content; $e = unpack("C1enc", $content[0]); $this->setEncoding($e['enc']); $this->setLanguage(substr($content, 1, 3)); $content = substr($content, 3); - $p = strpos($content, "\0"); - $this->setDescription(substr($content, 0, $p)); + $p = strpos($content, "\0"); + $this->setDescription(substr($content, 0, $p)); $this->setLyrics(substr($content, $p+1)); } - + /** * sets the id and the purpose of the frame * @access public */ - function MP3_IDv2_Frame_USLT() { + public function __construct() { $this->_id = "USLT"; $this->_purpose = "Unsynchronized lyrics/text transcription"; } - + /** * Returns the frame content as something printable * * @return string the frame content * @access public */ - function toString() { + public function toString() { return $this->getID()." (".$this->getPurpose().") ". $this->getLanguage()." ".$this->getDescription(true). " ".$this->getLyrics(); http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WCOM.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WCOM.php diff -u pear/MP3_IDv2/IDv2/Frame/WCOM.php:1.1 pear/MP3_IDv2/IDv2/Frame/WCOM.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WCOM.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WCOM.php Wed Oct 11 07:25:38 2006 @@ -1,52 +1,58 @@ <?php /** * This file contains the implementation for the WCOM frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WCOM.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WCOM.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ /** * load parent class - */ + */ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WCOM frame in a tag + * Data stucture for WCOM frame in a tag * (URL for Commercial information) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WCOM extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WCOM() { + public function __construct() { $this->setId("WCOM"); $this->setPurpose("URL for Commercial information"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WCOP.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WCOP.php diff -u pear/MP3_IDv2/IDv2/Frame/WCOP.php:1.1 pear/MP3_IDv2/IDv2/Frame/WCOP.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WCOP.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WCOP.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the WCOP frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WCOP.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WCOP.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WCOP frame in a tag + * Data stucture for WCOP frame in a tag * (URL for Commercial information) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WCOP extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WCOP() { + public function __construct() { $this->setId("WCOP"); $this->setPurpose("URL for Copyright/Legal information"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WOAF.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WOAF.php diff -u pear/MP3_IDv2/IDv2/Frame/WOAF.php:1.1 pear/MP3_IDv2/IDv2/Frame/WOAF.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WOAF.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WOAF.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the WOAF frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WOAF.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WOAF.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WOAF frame in a tag + * Data stucture for WOAF frame in a tag * (URL for Commercial information) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WOAF extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WOAF() { + public function __construct() { $this->setId("WOAF"); $this->setPurpose("Official audio file webpage"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WOAR.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WOAR.php diff -u pear/MP3_IDv2/IDv2/Frame/WOAR.php:1.1 pear/MP3_IDv2/IDv2/Frame/WOAR.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WOAR.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WOAR.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the WOAR frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WOAR.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WOAR.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WOAR frame in a tag + * Data stucture for WOAR frame in a tag * (Official artist/performer webpage) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WOAR extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WOAR() { + public function __construct() { $this->setId("WOAR"); $this->setPurpose("Official artist/performer webpage"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WOAS.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WOAS.php diff -u pear/MP3_IDv2/IDv2/Frame/WOAS.php:1.1 pear/MP3_IDv2/IDv2/Frame/WOAS.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WOAS.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WOAS.php Wed Oct 11 07:25:38 2006 @@ -2,20 +2,28 @@ /** * This file contains the implementation for the WOAS frame * - * PHP versions 4 and 5 + * Copyright (C) 2006 Alexander Merz * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. * - * @category File Formats + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WOAS.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WOAS.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WOAS frame in a tag + * Data stucture for WOAS frame in a tag * (Official audio source webpage) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WOAS extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WOAS() { + public function __construct() { $this->setId("WOAS"); $this->setPurpose("Official audio source webpage"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WORS.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WORS.php diff -u pear/MP3_IDv2/IDv2/Frame/WORS.php:1.1 pear/MP3_IDv2/IDv2/Frame/WORS.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WORS.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WORS.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the WORS frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WORS.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WORS.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,25 +34,23 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WORS frame in a tag + * Data stucture for WORS frame in a tag * (Official internet radio station homepage) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WORS extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WORS() { + public function __construct() { $this->setId("WORS"); $this->setPurpose("Official internet radio station homepage"); } http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WPAY.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WPAY.php diff -u pear/MP3_IDv2/IDv2/Frame/WPAY.php:1.1 pear/MP3_IDv2/IDv2/Frame/WPAY.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WPAY.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WPAY.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the WPAY frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WPAY.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WPAY.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WPAY frame in a tag + * Data stucture for WPAY frame in a tag * (URL for payment information) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WPAY extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WPAY() { + public function __construct() { $this->setId("WPAY"); $this->setPurpose("URL for payment information"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WPUB.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WPUB.php diff -u pear/MP3_IDv2/IDv2/Frame/WPUB.php:1.1 pear/MP3_IDv2/IDv2/Frame/WPUB.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WPUB.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WPUB.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the WPUB frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WPUB.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WPUB.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,27 +34,25 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WPUB frame in a tag + * Data stucture for WPUB frame in a tag * (Publishers official webpage) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WPUB extends MP3_IDv2_Frame_CommonLink { /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WPUB() { + public function __construct() { $this->setId("WPUB"); $this->setPurpose("Publishers official webpage"); - } + } } ?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/MP3_IDv2/IDv2/Frame/WXXX.php?r1=1.1&r2=1.2&diff_format=u Index: pear/MP3_IDv2/IDv2/Frame/WXXX.php diff -u pear/MP3_IDv2/IDv2/Frame/WXXX.php:1.1 pear/MP3_IDv2/IDv2/Frame/WXXX.php:1.2 --- pear/MP3_IDv2/IDv2/Frame/WXXX.php:1.1 Fri Aug 26 10:46:51 2005 +++ pear/MP3_IDv2/IDv2/Frame/WXXX.php Wed Oct 11 07:25:38 2006 @@ -1,21 +1,29 @@ <?php /** * This file contains the implementation for the WXXX frame - * - * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. + * Copyright (C) 2006 Alexander Merz * - * @category File Formats + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: WXXX.php,v 1.1 2005/08/26 10:46:51 alexmerz Exp $ + * @copyright 2006 Alexander Merz + * @license http://www.gnu.org/licenses/lgpl.html + * @version CVS: $Id: WXXX.php,v 1.2 2006/10/11 07:25:38 alexmerz Exp $ * @link http://pear.php.net/package/MP3_IDv2 * @since File available since Release 0.1 */ @@ -26,43 +34,41 @@ require_once 'MP3/IDv2/Frame/CommonLink.php'; /** - * Data stucture for WXXX frame in a tag + * Data stucture for WXXX frame in a tag * (User-defined URL) * * @category File Formats * @package MP3_IDv2 * @author Alexander Merz <alexander.merz@web.de> - * @copyright 2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/MP3_IDv2 * @since Class available since Release 0.1.0 - */ + */ class MP3_IDv2_Frame_WXXX extends MP3_IDv2_Frame_CommonLink { /** * the encoding of the frame data * @var string the encoding identifier */ - var $_encoding="\n"; - + private $_encoding="\n"; + /** * The description of the frame * @var string - */ - var $_description = ""; - + */ + private $_description = ""; + /** * The url of the frame * @var string */ - var $_url = ""; - + private $_url = ""; + /** - * Sets the id and purpose of the frame only + * Sets the id and purpose of the frame only * @access public */ - function MP3_IDv2_Frame_WXXX() { + public function __construct() { $this->setId("WXXX"); $this->setPurpose("User-defined URL"); } @@ -74,7 +80,7 @@ * @return string the frame description * @access public */ - function getDescription($nul = false) { + public function getDescription($nul = false) { $ret = $this->_description; if ($nul) { if ("\0" != substr($nul, -1)) { @@ -89,7 +95,7 @@ * @return string the frame value * @access public */ - function getUrl() { + public function getUrl() { return $this->_url; } @@ -99,7 +105,7 @@ * @param string $url the url * @access public */ - function setUrl($url) { + public function setUrl($url) { $this->_changed = true; $this->_url = $url; } @@ -110,7 +116,7 @@ * @param string $desc the description * @access public */ - function setDescription($url) { + public function setDescription($url) { $this->_changed = true; $this->_url = $url; } @@ -120,7 +126,7 @@ * @param string content the unproccess content for the frame * @access public */ - function setRawContent($content) { + public function setRawContent($content) { $this->_changed = true; $this->_content = $content; $c = unpack('C1enc', $content[0]); @@ -137,7 +143,7 @@ * @param string $enc the byte containing the encoding identifier * @access public */ - function setEncoding($enc) { + public function setEncoding($enc) { $this->_changed = true; $this->_encoding = $enc; } @@ -147,7 +153,7 @@ * @return string the identifier * @access public */ - function getEncoding() { + public function getEncoding() { return $this->_encoding; } @@ -156,7 +162,7 @@ * @return string the frame content * @access public */ - function createContent() { + public function createContent() { return pack("c", $this->getEncoding()).$this->getDescription(true).$this->getUrl(); } }
« previous php.pear.cvs (#42488) next »