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.
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
25 * @see Zend_Gdata_Media
27 require_once 'Zend/Gdata/Media.php';
30 * @see Zend_Gdata_Media_Entry
32 require_once 'Zend/Gdata/Media/Entry.php';
35 * @see Zend_Gdata_YouTube_Extension_MediaGroup
37 require_once 'Zend/Gdata/YouTube/Extension/MediaGroup.php';
40 * Represents the YouTube flavor of a Gdata Media Entry
45 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
46 * @license http://framework.zend.com/license/new-bsd New BSD License
48 class Zend_Gdata_YouTube_MediaEntry extends Zend_Gdata_Media_Entry
51 protected $_entryClassName = 'Zend_Gdata_YouTube_MediaEntry';
56 * @var Zend_Gdata_YouTube_Extension_MediaGroup
58 protected $_mediaGroup = null;
61 * Creates individual Entry objects of the appropriate type and
62 * stores them as members of this entry based upon DOM data.
64 * @param DOMNode $child The DOMNode to process
66 protected function takeChildFromDOM($child)
68 $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
69 switch ($absoluteNodeName) {
70 case $this->lookupNamespace('media') . ':' . 'group':
71 $mediaGroup = new Zend_Gdata_YouTube_Extension_MediaGroup();
72 $mediaGroup->transferFromDOM($child);
73 $this->_mediaGroup = $mediaGroup;
76 parent::takeChildFromDOM($child);