@@ -133,24 +133,24 @@ discard block |
||
133 | 133 | { |
134 | 134 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
135 | 135 | switch ($absoluteNodeName) { |
136 | - case $this->lookupNamespace('openSearch') . ':' . 'totalResults': |
|
137 | - $totalResults = new Zend_Gdata_Extension_OpenSearchTotalResults(); |
|
138 | - $totalResults->transferFromDOM($child); |
|
139 | - $this->_totalResults = $totalResults; |
|
140 | - break; |
|
141 | - case $this->lookupNamespace('openSearch') . ':' . 'startIndex': |
|
142 | - $startIndex = new Zend_Gdata_Extension_OpenSearchStartIndex(); |
|
143 | - $startIndex->transferFromDOM($child); |
|
144 | - $this->_startIndex = $startIndex; |
|
145 | - break; |
|
146 | - case $this->lookupNamespace('openSearch') . ':' . 'itemsPerPage': |
|
147 | - $itemsPerPage = new Zend_Gdata_Extension_OpenSearchItemsPerPage(); |
|
148 | - $itemsPerPage->transferFromDOM($child); |
|
149 | - $this->_itemsPerPage = $itemsPerPage; |
|
150 | - break; |
|
151 | - default: |
|
152 | - parent::takeChildFromDOM($child); |
|
153 | - break; |
|
136 | + case $this->lookupNamespace('openSearch') . ':' . 'totalResults': |
|
137 | + $totalResults = new Zend_Gdata_Extension_OpenSearchTotalResults(); |
|
138 | + $totalResults->transferFromDOM($child); |
|
139 | + $this->_totalResults = $totalResults; |
|
140 | + break; |
|
141 | + case $this->lookupNamespace('openSearch') . ':' . 'startIndex': |
|
142 | + $startIndex = new Zend_Gdata_Extension_OpenSearchStartIndex(); |
|
143 | + $startIndex->transferFromDOM($child); |
|
144 | + $this->_startIndex = $startIndex; |
|
145 | + break; |
|
146 | + case $this->lookupNamespace('openSearch') . ':' . 'itemsPerPage': |
|
147 | + $itemsPerPage = new Zend_Gdata_Extension_OpenSearchItemsPerPage(); |
|
148 | + $itemsPerPage->transferFromDOM($child); |
|
149 | + $this->_itemsPerPage = $itemsPerPage; |
|
150 | + break; |
|
151 | + default: |
|
152 | + parent::takeChildFromDOM($child); |
|
153 | + break; |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 | |
@@ -164,21 +164,21 @@ discard block |
||
164 | 164 | protected function takeAttributeFromDOM($attribute) |
165 | 165 | { |
166 | 166 | switch ($attribute->localName) { |
167 | - case 'etag': |
|
168 | - // ETags are special, since they can be conveyed by either the |
|
169 | - // HTTP ETag header or as an XML attribute. |
|
170 | - $etag = $attribute->nodeValue; |
|
171 | - if ($this->_etag === null) { |
|
172 | - $this->_etag = $etag; |
|
173 | - } |
|
174 | - elseif ($this->_etag != $etag) { |
|
175 | - require_once('Zend/Gdata/App/IOException.php'); |
|
176 | - throw new Zend_Gdata_App_IOException("ETag mismatch"); |
|
177 | - } |
|
178 | - break; |
|
179 | - default: |
|
180 | - parent::takeAttributeFromDOM($attribute); |
|
181 | - break; |
|
167 | + case 'etag': |
|
168 | + // ETags are special, since they can be conveyed by either the |
|
169 | + // HTTP ETag header or as an XML attribute. |
|
170 | + $etag = $attribute->nodeValue; |
|
171 | + if ($this->_etag === null) { |
|
172 | + $this->_etag = $etag; |
|
173 | + } |
|
174 | + elseif ($this->_etag != $etag) { |
|
175 | + require_once('Zend/Gdata/App/IOException.php'); |
|
176 | + throw new Zend_Gdata_App_IOException("ETag mismatch"); |
|
177 | + } |
|
178 | + break; |
|
179 | + default: |
|
180 | + parent::takeAttributeFromDOM($attribute); |
|
181 | + break; |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 |
@@ -95,14 +95,14 @@ |
||
95 | 95 | protected function takeAttributeFromDOM($attribute) |
96 | 96 | { |
97 | 97 | switch ($attribute->localName) { |
98 | - case 'scheme': |
|
99 | - $this->_scheme = $attribute->nodeValue; |
|
100 | - break; |
|
101 | - case 'label': |
|
102 | - $this->_label = $attribute->nodeValue; |
|
103 | - break; |
|
104 | - default: |
|
105 | - parent::takeAttributeFromDOM($attribute); |
|
98 | + case 'scheme': |
|
99 | + $this->_scheme = $attribute->nodeValue; |
|
100 | + break; |
|
101 | + case 'label': |
|
102 | + $this->_label = $attribute->nodeValue; |
|
103 | + break; |
|
104 | + default: |
|
105 | + parent::takeAttributeFromDOM($attribute); |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 |
@@ -323,9 +323,9 @@ |
||
323 | 323 | $title->transferFromDOM($child); |
324 | 324 | $this->_title = $title; |
325 | 325 | break; |
326 | - default: |
|
327 | - parent::takeChildFromDOM($child); |
|
328 | - break; |
|
326 | + default: |
|
327 | + parent::takeChildFromDOM($child); |
|
328 | + break; |
|
329 | 329 | } |
330 | 330 | } |
331 | 331 |
@@ -86,11 +86,11 @@ |
||
86 | 86 | protected function takeAttributeFromDOM($attribute) |
87 | 87 | { |
88 | 88 | switch ($attribute->localName) { |
89 | - case 'algo': |
|
90 | - $this->_algo = $attribute->nodeValue; |
|
91 | - break; |
|
92 | - default: |
|
93 | - parent::takeAttributeFromDOM($attribute); |
|
89 | + case 'algo': |
|
90 | + $this->_algo = $attribute->nodeValue; |
|
91 | + break; |
|
92 | + default: |
|
93 | + parent::takeAttributeFromDOM($attribute); |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 |
@@ -107,17 +107,17 @@ |
||
107 | 107 | protected function takeAttributeFromDOM($attribute) |
108 | 108 | { |
109 | 109 | switch ($attribute->localName) { |
110 | - case 'url': |
|
111 | - $this->_url = $attribute->nodeValue; |
|
112 | - break; |
|
113 | - case 'width': |
|
114 | - $this->_width = $attribute->nodeValue; |
|
115 | - break; |
|
116 | - case 'height': |
|
117 | - $this->_height = $attribute->nodeValue; |
|
118 | - break; |
|
119 | - default: |
|
120 | - parent::takeAttributeFromDOM($attribute); |
|
110 | + case 'url': |
|
111 | + $this->_url = $attribute->nodeValue; |
|
112 | + break; |
|
113 | + case 'width': |
|
114 | + $this->_width = $attribute->nodeValue; |
|
115 | + break; |
|
116 | + case 'height': |
|
117 | + $this->_height = $attribute->nodeValue; |
|
118 | + break; |
|
119 | + default: |
|
120 | + parent::takeAttributeFromDOM($attribute); |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 |
@@ -118,20 +118,20 @@ |
||
118 | 118 | protected function takeAttributeFromDOM($attribute) |
119 | 119 | { |
120 | 120 | switch ($attribute->localName) { |
121 | - case 'url': |
|
122 | - $this->_url = $attribute->nodeValue; |
|
123 | - break; |
|
124 | - case 'width': |
|
125 | - $this->_width = $attribute->nodeValue; |
|
126 | - break; |
|
127 | - case 'height': |
|
128 | - $this->_height = $attribute->nodeValue; |
|
129 | - break; |
|
130 | - case 'time': |
|
131 | - $this->_time = $attribute->nodeValue; |
|
132 | - break; |
|
133 | - default: |
|
134 | - parent::takeAttributeFromDOM($attribute); |
|
121 | + case 'url': |
|
122 | + $this->_url = $attribute->nodeValue; |
|
123 | + break; |
|
124 | + case 'width': |
|
125 | + $this->_width = $attribute->nodeValue; |
|
126 | + break; |
|
127 | + case 'height': |
|
128 | + $this->_height = $attribute->nodeValue; |
|
129 | + break; |
|
130 | + case 'time': |
|
131 | + $this->_time = $attribute->nodeValue; |
|
132 | + break; |
|
133 | + default: |
|
134 | + parent::takeAttributeFromDOM($attribute); |
|
135 | 135 | } |
136 | 136 | } |
137 | 137 |
@@ -87,11 +87,11 @@ |
||
87 | 87 | protected function takeAttributeFromDOM($attribute) |
88 | 88 | { |
89 | 89 | switch ($attribute->localName) { |
90 | - case 'type': |
|
91 | - $this->_type = $attribute->nodeValue; |
|
92 | - break; |
|
93 | - default: |
|
94 | - parent::takeAttributeFromDOM($attribute); |
|
90 | + case 'type': |
|
91 | + $this->_type = $attribute->nodeValue; |
|
92 | + break; |
|
93 | + default: |
|
94 | + parent::takeAttributeFromDOM($attribute); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 |
@@ -99,14 +99,14 @@ |
||
99 | 99 | protected function takeAttributeFromDOM($attribute) |
100 | 100 | { |
101 | 101 | switch ($attribute->localName) { |
102 | - case 'relationship': |
|
103 | - $this->_relationship = $attribute->nodeValue; |
|
104 | - break; |
|
105 | - case 'type': |
|
106 | - $this->_type = $attribute->nodeValue; |
|
107 | - break; |
|
108 | - default: |
|
109 | - parent::takeAttributeFromDOM($attribute); |
|
102 | + case 'relationship': |
|
103 | + $this->_relationship = $attribute->nodeValue; |
|
104 | + break; |
|
105 | + case 'type': |
|
106 | + $this->_type = $attribute->nodeValue; |
|
107 | + break; |
|
108 | + default: |
|
109 | + parent::takeAttributeFromDOM($attribute); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 |
@@ -99,14 +99,14 @@ |
||
99 | 99 | protected function takeAttributeFromDOM($attribute) |
100 | 100 | { |
101 | 101 | switch ($attribute->localName) { |
102 | - case 'role': |
|
103 | - $this->_role = $attribute->nodeValue; |
|
104 | - break; |
|
105 | - case 'scheme': |
|
106 | - $this->_scheme = $attribute->nodeValue; |
|
107 | - break; |
|
108 | - default: |
|
109 | - parent::takeAttributeFromDOM($attribute); |
|
102 | + case 'role': |
|
103 | + $this->_role = $attribute->nodeValue; |
|
104 | + break; |
|
105 | + case 'scheme': |
|
106 | + $this->_scheme = $attribute->nodeValue; |
|
107 | + break; |
|
108 | + default: |
|
109 | + parent::takeAttributeFromDOM($attribute); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 |