Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
119 public function saveXml() | 119 public function saveXml() |
120 { | 120 { |
121 $dom = new DOMDocument('1.0', $this->getEncoding()); | 121 $dom = new DOMDocument('1.0', $this->getEncoding()); |
122 $entry = $dom->importNode($this->getElement(), true); | 122 $entry = $dom->importNode($this->getElement(), true); |
123 $dom->appendChild($entry); | 123 $dom->appendChild($entry); |
124 return $dom->saveXml(); | 124 return $dom->saveXML(); |
125 } | 125 } |
126 | 126 |
127 /** | 127 /** |
128 * Get the entry type | 128 * Get the entry type |
129 * | 129 * |
139 * | 139 * |
140 * @return DOMXPath | 140 * @return DOMXPath |
141 */ | 141 */ |
142 public function getXpath() | 142 public function getXpath() |
143 { | 143 { |
144 if (!$this->xpath) { | 144 if (! $this->xpath) { |
145 $this->setXpath(new DOMXPath($this->getDomDocument())); | 145 $this->setXpath(new DOMXPath($this->getDomDocument())); |
146 } | 146 } |
147 return $this->xpath; | 147 return $this->xpath; |
148 } | 148 } |
149 | 149 |
205 /** | 205 /** |
206 * Load extensions from Zend\Feed\Reader\Reader | 206 * Load extensions from Zend\Feed\Reader\Reader |
207 * | 207 * |
208 * @return void | 208 * @return void |
209 */ | 209 */ |
210 // @codingStandardsIgnoreStart | |
210 protected function _loadExtensions() | 211 protected function _loadExtensions() |
211 { | 212 { |
213 // @codingStandardsIgnoreEnd | |
212 $all = Reader::getExtensions(); | 214 $all = Reader::getExtensions(); |
213 $feed = $all['entry']; | 215 $feed = $all['entry']; |
214 foreach ($feed as $extension) { | 216 foreach ($feed as $extension) { |
215 if (in_array($extension, $all['core'])) { | 217 if (in_array($extension, $all['core'])) { |
216 continue; | 218 continue; |