comparison vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php @ 2:5311817fb629

Theme updates
author Chris Cannam
date Tue, 10 Jul 2018 13:19:18 +0000
parents c75dbcec494b
children a9cd425dd02b
comparison
equal deleted inserted replaced
1:0b0e5f3b1e83 2:5311817fb629
170 * 170 *
171 * @return string 171 * @return string
172 */ 172 */
173 public function saveXml() 173 public function saveXml()
174 { 174 {
175 return $this->getDomDocument()->saveXml(); 175 return $this->getDomDocument()->saveXML();
176 } 176 }
177 177
178 /** 178 /**
179 * Get the DOMElement representing the items/feed element 179 * Get the DOMElement representing the items/feed element
180 * 180 *
280 $feed = $all['feed']; 280 $feed = $all['feed'];
281 foreach ($feed as $extension) { 281 foreach ($feed as $extension) {
282 if (in_array($extension, $all['core'])) { 282 if (in_array($extension, $all['core'])) {
283 continue; 283 continue;
284 } 284 }
285 if (!$manager->has($extension)) { 285 if (! $manager->has($extension)) {
286 throw new Exception\RuntimeException(sprintf('Unable to load extension "%s"; cannot find class', $extension)); 286 throw new Exception\RuntimeException(
287 sprintf('Unable to load extension "%s"; cannot find class', $extension)
288 );
287 } 289 }
288 $plugin = $manager->get($extension); 290 $plugin = $manager->get($extension);
289 $plugin->setDomDocument($this->getDomDocument()); 291 $plugin->setDomDocument($this->getDomDocument());
290 $plugin->setType($this->data['type']); 292 $plugin->setType($this->data['type']);
291 $plugin->setXpath($this->xpath); 293 $plugin->setXpath($this->xpath);