@@ -190,9 +190,9 @@ |
||
| 190 | 190 | $uploaded ->transferFromDOM($child); |
| 191 | 191 | $this->_uploaded = $uploaded; |
| 192 | 192 | break; |
| 193 | - default: |
|
| 194 | - parent::takeChildFromDOM($child); |
|
| 195 | - break; |
|
| 193 | + default: |
|
| 194 | + parent::takeChildFromDOM($child); |
|
| 195 | + break; |
|
| 196 | 196 | } |
| 197 | 197 | } |
| 198 | 198 | |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) |
| 71 | 71 | { |
| 72 | 72 | $element = parent::getDOM($doc, $majorVersion, $minorVersion); |
| 73 | - if ($this->_format!= null) { |
|
| 73 | + if ($this->_format != null) { |
|
| 74 | 74 | $element->setAttributeNS($this->lookupNamespace('yt'), 'yt:format', $this->_format); |
| 75 | 75 | } |
| 76 | 76 | return $element; |
@@ -82,11 +82,11 @@ |
||
| 82 | 82 | protected function takeAttributeFromDOM($attribute) |
| 83 | 83 | { |
| 84 | 84 | switch ($attribute->localName) { |
| 85 | - case 'state': |
|
| 86 | - $this->_state = $attribute->nodeValue; |
|
| 87 | - break; |
|
| 88 | - default: |
|
| 89 | - parent::takeAttributeFromDOM($attribute); |
|
| 85 | + case 'state': |
|
| 86 | + $this->_state = $attribute->nodeValue; |
|
| 87 | + break; |
|
| 88 | + default: |
|
| 89 | + parent::takeAttributeFromDOM($attribute); |
|
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
@@ -82,11 +82,11 @@ |
||
| 82 | 82 | protected function takeAttributeFromDOM($attribute) |
| 83 | 83 | { |
| 84 | 84 | switch ($attribute->localName) { |
| 85 | - case 'seconds': |
|
| 86 | - $this->_seconds = $attribute->nodeValue; |
|
| 87 | - break; |
|
| 88 | - default: |
|
| 89 | - parent::takeAttributeFromDOM($attribute); |
|
| 85 | + case 'seconds': |
|
| 86 | + $this->_seconds = $attribute->nodeValue; |
|
| 87 | + break; |
|
| 88 | + default: |
|
| 89 | + parent::takeAttributeFromDOM($attribute); |
|
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * @param string $role |
| 69 | 69 | * @param string $scheme |
| 70 | 70 | */ |
| 71 | - public function __construct($text = null, $role = null, $scheme = null, |
|
| 71 | + public function __construct($text = null, $role = null, $scheme = null, |
|
| 72 | 72 | $yttype = null) |
| 73 | 73 | { |
| 74 | 74 | $this->registerAllNamespaces(Zend_Gdata_Media::$namespaces); |
@@ -156,23 +156,23 @@ |
||
| 156 | 156 | protected function takeAttributeFromDOM($attribute) |
| 157 | 157 | { |
| 158 | 158 | switch ($attribute->localName) { |
| 159 | - case 'videoWatchCount': |
|
| 160 | - $this->_videoWatchCount = $attribute->nodeValue; |
|
| 161 | - break; |
|
| 162 | - case 'viewCount': |
|
| 163 | - $this->_viewCount = $attribute->nodeValue; |
|
| 164 | - break; |
|
| 165 | - case 'subscriberCount': |
|
| 166 | - $this->_subscriberCount = $attribute->nodeValue; |
|
| 167 | - break; |
|
| 168 | - case 'lastWebAccess': |
|
| 169 | - $this->_lastWebAccess = $attribute->nodeValue; |
|
| 170 | - break; |
|
| 171 | - case 'favoriteCount': |
|
| 172 | - $this->_favoriteCount = $attribute->nodeValue; |
|
| 173 | - break; |
|
| 174 | - default: |
|
| 175 | - parent::takeAttributeFromDOM($attribute); |
|
| 159 | + case 'videoWatchCount': |
|
| 160 | + $this->_videoWatchCount = $attribute->nodeValue; |
|
| 161 | + break; |
|
| 162 | + case 'viewCount': |
|
| 163 | + $this->_viewCount = $attribute->nodeValue; |
|
| 164 | + break; |
|
| 165 | + case 'subscriberCount': |
|
| 166 | + $this->_subscriberCount = $attribute->nodeValue; |
|
| 167 | + break; |
|
| 168 | + case 'lastWebAccess': |
|
| 169 | + $this->_lastWebAccess = $attribute->nodeValue; |
|
| 170 | + break; |
|
| 171 | + case 'favoriteCount': |
|
| 172 | + $this->_favoriteCount = $attribute->nodeValue; |
|
| 173 | + break; |
|
| 174 | + default: |
|
| 175 | + parent::takeAttributeFromDOM($attribute); |
|
| 176 | 176 | } |
| 177 | 177 | } |
| 178 | 178 | |
@@ -121,13 +121,13 @@ |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | - * Get the value of this element's token attribute. |
|
| 125 | - * |
|
| 126 | - * @return string The token's text value |
|
| 127 | - */ |
|
| 124 | + * Get the value of this element's token attribute. |
|
| 125 | + * |
|
| 126 | + * @return string The token's text value |
|
| 127 | + */ |
|
| 128 | 128 | public function getTokenValue() |
| 129 | 129 | { |
| 130 | - return $this->getToken()->getText(); |
|
| 130 | + return $this->getToken()->getText(); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | } |
@@ -87,14 +87,14 @@ |
||
| 87 | 87 | { |
| 88 | 88 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
| 89 | 89 | switch ($absoluteNodeName) { |
| 90 | - case $this->lookupNamespace('yt') . ':' . 'token': |
|
| 91 | - $token = new Zend_Gdata_YouTube_Extension_Token(); |
|
| 92 | - $token->transferFromDOM($child); |
|
| 93 | - $this->_token = $token; |
|
| 94 | - break; |
|
| 95 | - default: |
|
| 96 | - parent::takeChildFromDOM($child); |
|
| 97 | - break; |
|
| 90 | + case $this->lookupNamespace('yt') . ':' . 'token': |
|
| 91 | + $token = new Zend_Gdata_YouTube_Extension_Token(); |
|
| 92 | + $token->transferFromDOM($child); |
|
| 93 | + $this->_token = $token; |
|
| 94 | + break; |
|
| 95 | + default: |
|
| 96 | + parent::takeChildFromDOM($child); |
|
| 97 | + break; |
|
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
@@ -99,14 +99,14 @@ |
||
| 99 | 99 | protected function takeAttributeFromDOM($attribute) |
| 100 | 100 | { |
| 101 | 101 | switch ($attribute->localName) { |
| 102 | - case 'scheme': |
|
| 103 | - $this->_scheme = $attribute->nodeValue; |
|
| 104 | - break; |
|
| 105 | - case 'country': |
|
| 106 | - $this->_country = $attribute->nodeValue; |
|
| 107 | - break; |
|
| 108 | - default: |
|
| 109 | - parent::takeAttributeFromDOM($attribute); |
|
| 102 | + case 'scheme': |
|
| 103 | + $this->_scheme = $attribute->nodeValue; |
|
| 104 | + break; |
|
| 105 | + case 'country': |
|
| 106 | + $this->_country = $attribute->nodeValue; |
|
| 107 | + break; |
|
| 108 | + default: |
|
| 109 | + parent::takeAttributeFromDOM($attribute); |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | |
@@ -121,13 +121,13 @@ |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | - * Get the value of this element's state attribute. |
|
| 125 | - * |
|
| 126 | - * @return string The state's text value |
|
| 127 | - */ |
|
| 124 | + * Get the value of this element's state attribute. |
|
| 125 | + * |
|
| 126 | + * @return string The state's text value |
|
| 127 | + */ |
|
| 128 | 128 | public function getStateValue() |
| 129 | 129 | { |
| 130 | - return $this->getState()->getText(); |
|
| 130 | + return $this->getState()->getText(); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | } |
@@ -87,14 +87,14 @@ |
||
| 87 | 87 | { |
| 88 | 88 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
| 89 | 89 | switch ($absoluteNodeName) { |
| 90 | - case $this->lookupNamespace('yt') . ':' . 'state': |
|
| 91 | - $state = new Zend_Gdata_YouTube_Extension_State(); |
|
| 92 | - $state->transferFromDOM($child); |
|
| 93 | - $this->_state = $state; |
|
| 94 | - break; |
|
| 95 | - default: |
|
| 96 | - parent::takeChildFromDOM($child); |
|
| 97 | - break; |
|
| 90 | + case $this->lookupNamespace('yt') . ':' . 'state': |
|
| 91 | + $state = new Zend_Gdata_YouTube_Extension_State(); |
|
| 92 | + $state->transferFromDOM($child); |
|
| 93 | + $this->_state = $state; |
|
| 94 | + break; |
|
| 95 | + default: |
|
| 96 | + parent::takeChildFromDOM($child); |
|
| 97 | + break; |
|
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |