import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -30,13 +30,14 @@ require_once 'Zend/Gdata/App/Extension.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Media
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Media_Extension_MediaPlayer extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'player';
|
||||
protected $_rootElement = 'player';
|
||||
protected $_rootNamespace = 'media';
|
||||
|
||||
/**
|
||||
@ -50,22 +51,20 @@ class Zend_Gdata_Media_Extension_MediaPlayer extends Zend_Gdata_Extension
|
||||
protected $_width = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
* @var int
|
||||
*/
|
||||
protected $_height = null;
|
||||
|
||||
/**
|
||||
* Constructs a new MediaPlayer element
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $url
|
||||
* @param int $width
|
||||
* @param int $height
|
||||
*/
|
||||
public function __construct($url = null, $width = null, $height = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Media::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Media::$namespaces);
|
||||
parent::__construct();
|
||||
$this->_url = $url;
|
||||
$this->_width = $width;
|
||||
@ -73,13 +72,13 @@ class Zend_Gdata_Media_Extension_MediaPlayer extends Zend_Gdata_Extension
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a DOMElement which corresponds to this element and all
|
||||
* Retrieves a DOMElement which corresponds to this element and all
|
||||
* child properties. This is used to build an entry back into a DOM
|
||||
* and eventually XML text for sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
@ -99,7 +98,7 @@ class Zend_Gdata_Media_Extension_MediaPlayer extends Zend_Gdata_Extension
|
||||
|
||||
/**
|
||||
* Given a DOMNode representing an attribute, tries to map the data into
|
||||
* instance members. If no mapping is defined, the name and value are
|
||||
* instance members. If no mapping is defined, the name and value are
|
||||
* stored in an array.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
@ -140,7 +139,7 @@ class Zend_Gdata_Media_Extension_MediaPlayer extends Zend_Gdata_Extension
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
* @return int
|
||||
*/
|
||||
public function getWidth()
|
||||
{
|
||||
|
Reference in New Issue
Block a user