import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -30,6 +30,7 @@ require_once 'Zend/Gdata/Extension.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage YouTube
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -50,27 +51,25 @@ class Zend_Gdata_YouTube_Extension_State extends Zend_Gdata_Extension
|
||||
* @param string $reasonCode(optional) The reasonCode value
|
||||
* @param string $helpUrl(optional) The helpUrl value
|
||||
*/
|
||||
public function __construct($explanation = null, $name = null,
|
||||
$reasonCode = null, $helpUrl = null)
|
||||
public function __construct($explanation = null, $name = null,
|
||||
$reasonCode = null, $helpUrl = null)
|
||||
{
|
||||
foreach (Zend_Gdata_YouTube::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
parent::__construct();
|
||||
$this->_text = $explanation;
|
||||
$this->_name = $name;
|
||||
$this->_reasonCode = $reasonCode;
|
||||
$this->_helpUrl = $reasonCode;
|
||||
$this->registerAllNamespaces(Zend_Gdata_YouTube::$namespaces);
|
||||
parent::__construct();
|
||||
$this->_text = $explanation;
|
||||
$this->_name = $name;
|
||||
$this->_reasonCode = $reasonCode;
|
||||
$this->_helpUrl = $reasonCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@ -90,7 +89,7 @@ class Zend_Gdata_YouTube_Extension_State 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 valueare
|
||||
* instance members. If no mapping is defined, the name and valueare
|
||||
* stored in an array.
|
||||
* TODO: Convert attributes to proper types
|
||||
*
|
||||
@ -185,7 +184,7 @@ class Zend_Gdata_YouTube_Extension_State extends Zend_Gdata_Extension
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
public function __toString()
|
||||
{
|
||||
return $this->_text;
|
||||
}
|
||||
|
Reference in New Issue
Block a user