Add iTunes custom frames provided by Darren Burnhill
git-svn-id: http://php-reader.googlecode.com/svn/trunk@203 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
40
src/Zend/Media/Id3/Frame/Tcmp.php
Normal file
40
src/Zend/Media/Id3/Frame/Tcmp.php
Normal file
@@ -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
src/Zend/Media/Id3/Frame/Tso2.php
Normal file
40
src/Zend/Media/Id3/Frame/Tso2.php
Normal file
@@ -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
src/Zend/Media/Id3/Frame/Tsoc.php
Normal file
40
src/Zend/Media/Id3/Frame/Tsoc.php
Normal file
@@ -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
|
||||
{}
|
||||
@@ -100,7 +100,7 @@ abstract class Zend_Media_Id3_TextFrame extends Zend_Media_Id3_Frame
|
||||
* 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
|
||||
@@ -137,7 +137,7 @@ abstract class Zend_Media_Id3_TextFrame extends Zend_Media_Id3_Frame
|
||||
*/
|
||||
public function getText()
|
||||
{
|
||||
return $this->_text[0];
|
||||
return $this->_text[0];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -147,7 +147,7 @@ abstract class Zend_Media_Id3_TextFrame extends Zend_Media_Id3_Frame
|
||||
*/
|
||||
public function getTexts()
|
||||
{
|
||||
return $this->_text;
|
||||
return $this->_text;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user