@@ -102,14 +102,14 @@ |
||
| 102 | 102 | { |
| 103 | 103 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
| 104 | 104 | switch ($absoluteNodeName) { |
| 105 | - case $this->lookupNamespace('exif') . ':' . 'tags': |
|
| 106 | - $tags = new Zend_Gdata_Exif_Extension_Tags(); |
|
| 107 | - $tags->transferFromDOM($child); |
|
| 108 | - $this->_tags = $tags; |
|
| 109 | - break; |
|
| 110 | - default: |
|
| 111 | - parent::takeChildFromDOM($child); |
|
| 112 | - break; |
|
| 105 | + case $this->lookupNamespace('exif') . ':' . 'tags': |
|
| 106 | + $tags = new Zend_Gdata_Exif_Extension_Tags(); |
|
| 107 | + $tags->transferFromDOM($child); |
|
| 108 | + $this->_tags = $tags; |
|
| 109 | + break; |
|
| 110 | + default: |
|
| 111 | + parent::takeChildFromDOM($child); |
|
| 112 | + break; |
|
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | |
@@ -147,29 +147,29 @@ |
||
| 147 | 147 | { |
| 148 | 148 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
| 149 | 149 | switch ($absoluteNodeName) { |
| 150 | - case $this->lookupNamespace('yt') . ':' . 'description': |
|
| 151 | - $description = new Zend_Gdata_YouTube_Extension_Description(); |
|
| 152 | - $description->transferFromDOM($child); |
|
| 153 | - $this->_description = $description; |
|
| 154 | - break; |
|
| 155 | - case $this->lookupNamespace('yt') . ':' . 'countHint': |
|
| 156 | - $countHint = new Zend_Gdata_YouTube_Extension_CountHint(); |
|
| 157 | - $countHint->transferFromDOM($child); |
|
| 158 | - $this->_countHint = $countHint; |
|
| 159 | - break; |
|
| 160 | - case $this->lookupNamespace('yt') . ':' . 'playlistId': |
|
| 161 | - $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId(); |
|
| 162 | - $playlistId->transferFromDOM($child); |
|
| 163 | - $this->_playlistId = $playlistId; |
|
| 164 | - break; |
|
| 165 | - case $this->lookupNamespace('gd') . ':' . 'feedLink': |
|
| 166 | - $feedLink = new Zend_Gdata_Extension_FeedLink(); |
|
| 167 | - $feedLink->transferFromDOM($child); |
|
| 168 | - $this->_feedLink[] = $feedLink; |
|
| 169 | - break; |
|
| 170 | - default: |
|
| 171 | - parent::takeChildFromDOM($child); |
|
| 172 | - break; |
|
| 150 | + case $this->lookupNamespace('yt') . ':' . 'description': |
|
| 151 | + $description = new Zend_Gdata_YouTube_Extension_Description(); |
|
| 152 | + $description->transferFromDOM($child); |
|
| 153 | + $this->_description = $description; |
|
| 154 | + break; |
|
| 155 | + case $this->lookupNamespace('yt') . ':' . 'countHint': |
|
| 156 | + $countHint = new Zend_Gdata_YouTube_Extension_CountHint(); |
|
| 157 | + $countHint->transferFromDOM($child); |
|
| 158 | + $this->_countHint = $countHint; |
|
| 159 | + break; |
|
| 160 | + case $this->lookupNamespace('yt') . ':' . 'playlistId': |
|
| 161 | + $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId(); |
|
| 162 | + $playlistId->transferFromDOM($child); |
|
| 163 | + $this->_playlistId = $playlistId; |
|
| 164 | + break; |
|
| 165 | + case $this->lookupNamespace('gd') . ':' . 'feedLink': |
|
| 166 | + $feedLink = new Zend_Gdata_Extension_FeedLink(); |
|
| 167 | + $feedLink->transferFromDOM($child); |
|
| 168 | + $this->_feedLink[] = $feedLink; |
|
| 169 | + break; |
|
| 170 | + default: |
|
| 171 | + parent::takeChildFromDOM($child); |
|
| 172 | + break; |
|
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
@@ -67,14 +67,14 @@ |
||
| 67 | 67 | { |
| 68 | 68 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
| 69 | 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; |
|
| 74 | - break; |
|
| 75 | - default: |
|
| 76 | - parent::takeChildFromDOM($child); |
|
| 77 | - break; |
|
| 70 | + case $this->lookupNamespace('media') . ':' . 'group': |
|
| 71 | + $mediaGroup = new Zend_Gdata_YouTube_Extension_MediaGroup(); |
|
| 72 | + $mediaGroup->transferFromDOM($child); |
|
| 73 | + $this->_mediaGroup = $mediaGroup; |
|
| 74 | + break; |
|
| 75 | + default: |
|
| 76 | + parent::takeChildFromDOM($child); |
|
| 77 | + break; |
|
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -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 | |