Skip to content

Commit

Permalink
Add iTunes custom frames provided by Darren Burnhill
Browse files Browse the repository at this point in the history
git-svn-id: http://php-reader.googlecode.com/svn/trunk@203 51a70ab9-7547-0410-9469-37e369ee0574
  • Loading branch information
svollbehr committed Oct 14, 2010
1 parent 0de892b commit 381abf4
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 3 deletions.
40 changes: 40 additions & 0 deletions src/Zend/Media/Id3/Frame/Tcmp.php
@@ -0,0 +1,40 @@
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Media
* @subpackage ID3
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**#@+ @ignore */
require_once 'Zend/Media/Id3/NumberFrame.php';
/**#@-*/

/**
* This non-standard frame is used by iTunes in ID3v2.3.0 to denote a track as being part
* of a compilation. Examples would be "Various Artists" or "Greatest Hits" releases.
*
* @category Zend
* @package Zend_Media
* @subpackage ID3
* @author Darren Burnhill <darrenburnhill@gmail.com>
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
final class Zend_Media_Id3_Frame_Tcmp extends Zend_Media_Id3_NumberFrame
{}
40 changes: 40 additions & 0 deletions src/Zend/Media/Id3/Frame/Tso2.php
@@ -0,0 +1,40 @@
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Media
* @subpackage ID3
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**#@+ @ignore */
require_once 'Zend/Media/Id3/TextFrame.php';
/**#@-*/

/**
* This non-standard frame is used by iTunes in ID3v2.3.0 for sorting the names of the
* Album Artist(s) of a track, that specified in the "TPE1" frame.
*
* @category Zend
* @package Zend_Media
* @subpackage ID3
* @author Darren Burnhill <darrenburnhill@gmail.com>
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
final class Zend_Media_Id3_Frame_Tso2 extends Zend_Media_Id3_TextFrame
{}
40 changes: 40 additions & 0 deletions src/Zend/Media/Id3/Frame/Tsoc.php
@@ -0,0 +1,40 @@
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Media
* @subpackage ID3
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**#@+ @ignore */
require_once 'Zend/Media/Id3/TextFrame.php';
/**#@-*/

/**
* This non-standard frame is used by iTunes in ID3v2.3.0 for sorting the names of the
* Composer(s) of a track, which is/are specified in the "TCOM" frame.
*
* @category Zend
* @package Zend_Media
* @subpackage ID3
* @author Darren Burnhill <darrenburnhill@gmail.com>
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
final class Zend_Media_Id3_Frame_Tsoc extends Zend_Media_Id3_TextFrame
{}
6 changes: 3 additions & 3 deletions src/Zend/Media/Id3/TextFrame.php
Expand Up @@ -100,7 +100,7 @@ public function __construct($reader = null, &$options = array())
* character encoding specified with the <var>encoding</var> option. See
* {@link Zend_Media_Id3v2} for details. This method returns that character
* encoding, or any value set after read, translated into a string form
* regarless if it was set using a {@link Zend_Media_Id3_Encoding} constant
* regardless if it was set using a {@link Zend_Media_Id3_Encoding} constant
* or a string.
*
* @return integer
Expand Down Expand Up @@ -137,7 +137,7 @@ public function setEncoding($encoding)
*/
public function getText()
{
return $this->_text[0];
return $this->_text[0];
}

/**
Expand All @@ -147,7 +147,7 @@ public function getText()
*/
public function getTexts()
{
return $this->_text;
return $this->_text;
}

/**
Expand Down

0 comments on commit 381abf4

Please sign in to comment.