[44] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Zend Framework
|
---|
| 5 | *
|
---|
| 6 | * LICENSE
|
---|
| 7 | *
|
---|
| 8 | * This source file is subject to the new BSD license that is bundled
|
---|
| 9 | * with this package in the file LICENSE.txt.
|
---|
| 10 | * It is also available through the world-wide-web at this URL:
|
---|
| 11 | * http://framework.zend.com/license/new-bsd
|
---|
| 12 | * If you did not receive a copy of the license and are unable to
|
---|
| 13 | * obtain it through the world-wide-web, please send an email
|
---|
| 14 | * to license@zend.com so we can send you a copy immediately.
|
---|
| 15 | *
|
---|
| 16 | * @category Zend
|
---|
| 17 | * @package Zend_Gdata
|
---|
| 18 | * @subpackage YouTube
|
---|
| 19 | * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
---|
| 20 | * @license http://framework.zend.com/license/new-bsd New BSD License
|
---|
| 21 | */
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * @see Zend_Gdata_Media
|
---|
| 25 | */
|
---|
| 26 | require_once 'Zend/Gdata/Media.php';
|
---|
| 27 |
|
---|
| 28 | /**
|
---|
| 29 | * @see Zend_Gdata_Media_Entry
|
---|
| 30 | */
|
---|
| 31 | require_once 'Zend/Gdata/Media/Entry.php';
|
---|
| 32 |
|
---|
| 33 | /**
|
---|
| 34 | * @see Zend_Gdata_YouTube_Extension_MediaGroup
|
---|
| 35 | */
|
---|
| 36 | require_once 'Zend/Gdata/YouTube/Extension/MediaGroup.php';
|
---|
| 37 |
|
---|
| 38 | /**
|
---|
| 39 | * Represents the YouTube flavor of a Gdata Media Entry
|
---|
| 40 | *
|
---|
| 41 | * @category Zend
|
---|
| 42 | * @package Zend_Gdata
|
---|
| 43 | * @subpackage YouTube
|
---|
| 44 | * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
---|
| 45 | * @license http://framework.zend.com/license/new-bsd New BSD License
|
---|
| 46 | */
|
---|
| 47 | class Zend_Gdata_YouTube_MediaEntry extends Zend_Gdata_Media_Entry
|
---|
| 48 | {
|
---|
| 49 |
|
---|
| 50 | protected $_entryClassName = 'Zend_Gdata_YouTube_MediaEntry';
|
---|
| 51 |
|
---|
| 52 | /**
|
---|
| 53 | * media:group element
|
---|
| 54 | *
|
---|
| 55 | * @var Zend_Gdata_YouTube_Extension_MediaGroup
|
---|
| 56 | */
|
---|
| 57 | protected $_mediaGroup = null;
|
---|
| 58 |
|
---|
| 59 | /**
|
---|
| 60 | * Creates individual Entry objects of the appropriate type and
|
---|
| 61 | * stores them as members of this entry based upon DOM data.
|
---|
| 62 | *
|
---|
| 63 | * @param DOMNode $child The DOMNode to process
|
---|
| 64 | */
|
---|
| 65 | protected function takeChildFromDOM($child)
|
---|
| 66 | {
|
---|
| 67 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
---|
| 68 | switch ($absoluteNodeName) {
|
---|
| 69 | case $this->lookupNamespace('media') . ':' . 'group':
|
---|
| 70 | $mediaGroup = new Zend_Gdata_YouTube_Extension_MediaGroup();
|
---|
| 71 | $mediaGroup->transferFromDOM($child);
|
---|
| 72 | $this->_mediaGroup = $mediaGroup;
|
---|
| 73 | break;
|
---|
| 74 | default:
|
---|
| 75 | parent::takeChildFromDOM($child);
|
---|
| 76 | break;
|
---|
| 77 | }
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | }
|
---|